1.

Solve : Executing a batch file?

Answer»

how do execute a batch file without a start COMMAND?

i TRIED

process = Runtime.getRuntime().exec("CMD start C:\\startup.bat");

it pop out a few windows to run the batch file.so is there any other ways to have only one window to run the file.Try this:

process = Runtime.getRuntime().exec("C:\startup.bat");

The OS will know what to do with a batch file. (LOAD the command processor and execute the batch file)

Hope this HELPS.



Discussion

No Comment Found