How to start an exe in a batch file

Batch fileTo start an exe file from a batch file in Windows, you can use the start command. For example, the following line would start Notepad in most versions of Windows.


The start command can be used for other exe files by replacing the file path with the path to the exe file.

Tip: 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.

Can I control a program using a batch file once its been started?

No. A batch file can only execute or start another program. Once it has been started it cannot perform additional functions within that program.

Tip: In some situations some programs may support additional syntax or options that allows you to perform additional functions.

If you are looking for a language or tool to help perform more automation we suggest Autohotkey.

Additional information