How to Start Program by Batch(bat) Files

 How to start an exe in a batch file



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

START C:\Windows\NOTEPAD.EXE

OR 

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.

START C:\"Program Files (x86)"\Google\Chrome\Application\chrome.exe



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 is started, it cannot perform additional functions within that program.

Comments

Popular posts from this blog