Hey there
I wanna run basic windows command in my c# program (for example- I want to run 'set' , in order to get a list of all my environment variables. or even run 'dir')
Please help
Thanks
Goz
Printable View
Hey there
I wanna run basic windows command in my c# program (for example- I want to run 'set' , in order to get a list of all my environment variables. or even run 'dir')
Please help
Thanks
Goz
Take a look at the System.Diagnostics.Process object in your documentation:
http://ms-help://MS.VSCC/MS.MSDNVS/c...mberstopic.htm
Speedy's solution is fine. However, for the examples you provided there are other functions that can handle what you need. Look for Environment in your help for example.