Solved How to run .exe files from .bat?


dedq

Member
Local time
7:19 AM
Posts
56
Location
Serbia
Visit site
OS
Windows 11
Hey!

I need help with a relatively simple thing. I've been searching for a solution online but nothing works for me.
I just want to make a script which will run a certain program. That program is Google Chrome. What command do I need to type in in order to run Chrome by running the script file?

Thank you for reading!
 

My Computer

System One

  • OS
    Windows 11

iko22

Well-known member
Member
VIP
Local time
6:19 AM
Posts
642
Location
South West England
Visit site
OS
Windows 10
You should be able to launch a program by including the filename and directory path in your batch file. For Chrome the command line will look something like this:
Code:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"

Or you can launch the same with start command like this:
Code:
start "" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"

In both cases, remember to enclose the directory path and filename in double quotes (""). The double quotes allows filenames and directory paths to include space characters in the name.
 

My Computer

System One

  • OS
    Windows 10
    CPU
    TBA
    Motherboard
    TBA

Latest Support Threads

Top Bottom