Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Creating a batch file for Programs?

Reply
Thread Tools Display Modes

Creating a batch file for Programs?

 
 
dcoaster
Guest
Posts: n/a

 
      11-18-2007
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.
 
Reply With Quote
 
 
 
 
Rick Rogers
Guest
Posts: n/a

 
      11-18-2007
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
http://mvp.support.microsoft.com/
Windows help - www.rickrogers.org
My thoughts http://rick-mvp.blogspot.com

"dcoaster" <> wrote in message
news:1C944D28-B0EF-4F53-8310-...
> 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.


 
Reply With Quote
 
Anteaus
Guest
Posts: n/a

 
      11-18-2007
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"

"dcoaster" wrote:
> start C:\Startup\Mozilla Firefox


 
Reply With Quote
 
dcoaster
Guest
Posts: n/a

 
      11-18-2007
Thanks that helped. I didn't use quotes.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
batch file help DarthRevan561 Windows Vista General Discussion 6 02-02-2008 12:00 AM
Batch file Bob Windows Vista General Discussion 2 01-20-2008 12:39 PM
Batch file Bob Windows Vista File Management 0 01-06-2008 07:39 PM
batch file calling exe file problem JPS Windows Vista Security 1 12-20-2007 12:18 AM
Need help with batch file n o s p a m p l e a s e Windows Vista General Discussion 11 10-14-2007 06:35 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59