Timbo87's suggestion is a good one since there's nothing else going on in the batch file.
The batch file will not run directly as you originally tried because it is not executable. It needs the command shell to run. One way to get the batch file to run is:
Process.Start("cmd.exe", "/C C:\\Inetpub\\myCmd.bat");
This will execute the batch file and then the console window will go away. You can use /K rather than /C if you want the console to hang around and wait for a manual close.
Main Topics
Browse All Topics





by: Timbo87Posted on 2004-06-25 at 20:57:35ID: 11404015
Why not run it all through the Start method instead of using a BAT file?
Files\Adobe\After Effects 6.5\Support Files\afterfx.exe", "-r " + path2);
Process.Start(@"C:\Program