Calling simple DOS Commands from C#
-
I found a lot of things about calling applications and Documents from C# very simple. But I did not find documentations about Calling simple DOS Commands line "md NewDire" or "Copy *.* to x:" from C#. So I would be happy if somebody could tell me how I can use simple DOS Commands from C#. I need the following commands: md, copy *.prg Thanks Stefan
-
I found a lot of things about calling applications and Documents from C# very simple. But I did not find documentations about Calling simple DOS Commands line "md NewDire" or "Copy *.* to x:" from C#. So I would be happy if somebody could tell me how I can use simple DOS Commands from C#. I need the following commands: md, copy *.prg Thanks Stefan
Have you tried Process.Start with "Cmd.exe /C CommandToRun"? Why not just use the .NET file management for these such as "File.Copy" or "Directoy.CreateDirectory"? Rocky Moore <><
-
Have you tried Process.Start with "Cmd.exe /C CommandToRun"? Why not just use the .NET file management for these such as "File.Copy" or "Directoy.CreateDirectory"? Rocky Moore <><