I have a batch file which disables and enables some driver using windows devcon. when I run this batch file by double-clicking on it it works fine. However, I tried to run it from a C# program that I wrote using this line:
System.Diagnostics.Process.Start("C:/*path to file*/file.bat");
it runs fine until it tries to open the devcon.exe and I get the following message:
after that it continues to run smoothly.
any ideas why it doesn't work from the C# program?
p.s I can't post the batch code due to IP issues...