Execute CMD command from code

Here’s a simple example :

Process.Start("cmd","/C copy c:\\file.txt lpt1");

Leave a Comment