How to run command line command from code

Use
System.Diagnostics.Process.Start("gm.exe", strToExec)

where:
gm.exe – command
strToExec – parameters

If there are some strange errors occuring like: File cannot be found
and if you have installed some library recently: JUST RESTART THE PC!!! 😦
Spent 1 whole day with this problem. Hope you won’t!

Leave a comment