Solved How to run .exe files from .bat?


dedq

Member
Local time
10:20 PM
Posts
54
Location
Serbia
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
9:20 PM
Posts
557
Location
South West England
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

vannn

Custom title
Member
Local time
4:20 AM
Posts
870
OS
Windows 11 x64 Build 22000.651
start "program" "c:\program files\program.exe"
 

My Computer

System One

  • OS
    Windows 11 x64 Build 22000.651
    Computer type
    Laptop
    Manufacturer/Model
    Sony VAIO
Top Bottom