How to run exe file through batch file




















How to execute any. Ask Question. Asked 8 years, 9 months ago. Active 5 years, 2 months ago. Viewed 17k times. Improve this question. What purpose would this be used for? Executing one exe in a certain folder after it being extracted by a previous part of my script. Add a comment. Active Oldest Votes. Improve this answer. Guido Preite Guido Preite Actually, your answer was the only one that worked, since the other ones received an error in a folder with spaces e. Doccuments and settings , thanks!

Do you know if there's any way to add an "except"? Vassilis Barzokas Vassilis Barzokas 2, 2 2 gold badges 24 24 silver badges 40 40 bronze badges. Sheng Sheng 3, 1 1 gold badge 16 16 silver badges 21 21 bronze badges. Michael Michael 7 7 bronze badges. I'm getting a "Windows cannot find '', any ideas why? Don't blame their codes for space issue. You should know how to use double quotation marks.

Batcher Batcher 1 1 bronze badge. I don't. If you want to start multiple executable files, keep in mind that the batch file opens each of the files almost immediately. If you want some delay, consider using the pause command or sleep utility. If the file path contains a space within a folder name, you need to enclose that folder name in double quotes.

For example, if you had Google Chrome installed on your computer and wanted to start the Chrome browser through a batch file, you could use the command below. The Program Files x86 folder name includes spaces in it. Enclosing the folder name in double quotes tells Windows the spaces are part of the folder name. A batch file can only execute or start another program. Once it is started, it cannot perform additional functions within that program.



0コメント

  • 1000 / 1000