Solved How to run .exe files from .bat?


dedq

Well-known member
Local time
7:17 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 My Computer

At a glance

Windows 11AMD Athlon X4 860K8 gigabytes DDR3AMD Radeon R7200 Series
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 My Computers

  • At a glance

    Windows 11AMD Ryzen 5 560016 GBSapphire Radeon RX 6500XT (8 GB version)
    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
  • At a glance

    Windows 11Intel Celeron N4020
    Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Acer A114
    CPU
    Intel Celeron N4020
start "program" "c:\program files\program.exe"
 

My Computer My Computer

At a glance

Windows 11 x64 v23H2 Build 22631.3958
OS
Windows 11 x64 v23H2 Build 22631.3958
Computer type
PC/Desktop
Manufacturer/Model
Acer
Back
Top Bottom