Solved How to run .exe files from .bat?

dedq

Member
Local time
10:37 PM
Posts
18
Location
Serbia
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

  • Operating System
    Windows 11

iko22

Active member
Member
VIP
Local time
9:37 PM
Posts
347
Location
South West England
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

  • Operating System
    Windows 10
    CPU
    TBA
    Motherboard
    TBA

vannn

Custom title
Member
Local time
4:37 AM
Posts
832
start "program" "c:\program files\program.exe"
 

My Computer

System One

  • Operating System
    Windows 11 x64 Build 22000.71
    Computer type
    Laptop
    Manufacturer/Model
    Sony VAIO
Top Bottom