Solved How to run .exe files from .bat?


dedq

Well-known member
Local time
10:43 AM
Posts
61
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
    Computer type
    PC/Desktop
    CPU
    AMD Athlon X4 860K
    Motherboard
    Gigabyte F2A58M-S1
    Memory
    8 gigabytes DDR3
    Graphics Card(s)
    AMD Radeon R7200 Series
    Hard Drives
    SSD.
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 Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 5600
    Motherboard
    MSI B550-A Pro
    Memory
    16 GB
    Graphics Card(s)
    Sapphire Radeon RX 6500XT (8 GB version)
    Monitor(s) Displays
    BenQ Mobuiz EX2710Q QHD, Iiyama ProLite X23377HDS
    Hard Drives
    MSI Spatium M461 4TB
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Acer A114
    CPU
    Intel Celeron N4020
start "program" "c:\program files\program.exe"
 

My Computer

System One

  • OS
    Windows 11 x64 Build 22621
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acer

Latest Support Threads

Back
Top Bottom