Creating a batch file for Programs?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to create a batch file in order to start a couple of Apps at the
same time, but I'm not quite sure how to create one. I used notepad to create
one, but when I launch it it says there is no such path. I used the syntax
(example):

start C:\Startup\Mozilla Firefox

(Startup is the folder I created with the Firefox shortcut.)

Saved it as ______.bat and saved to desktop. Ran it but no luck. Can you
help? Thanks.
 
Hi,

Enclose the file path in quote or use truncated notation. It should end in
the executable file name, not the folder or program name. EG:

start "C:\Startup\Mozilla Firefox\firefox.exe"
start C:\Startup\Mozill~1\firefox.exe

Also, make sure your program path is correct. What you have listed looks
like a shortcut to the startup folder, I would suspect it's something more
like:

start "C:\Program Files\Mozilla Firefox\firefox.exe"
start C:\Progra~1\Mozill~1\firefox.exe

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP

Windows help - www.rickrogers.org
My thoughts http://rick-mvp.blogspot.com
 
If there is a space in the program's pathname, you must put it in quotes.

Otherwise that reads as Start "Mozilla" with the commandline-parameter
"Firefox"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top