Create a .bat file  | | |
May 27th, 2003, 10:39 AM
|
#1 (permalink)
| | Member
Join Date: Mar 2003 Location: 35.92 N 84 W
Posts: 158
|
I want to create a .bat file under XP Pro to open a group of programs that I use when I am working on web and graphic design. How would I go about doing this?
__________________
d[o.o]b
|
| |
May 27th, 2003, 10:43 AM
|
#2 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Moved to Germany
Posts: 2,397
| |
| |
May 27th, 2003, 02:15 PM
|
#3 (permalink)
| | Member
Join Date: Mar 2003 Location: 35.92 N 84 W
Posts: 158
|
well the problem that I am having is with the names...Im at work right now so I will try the ~1 when I get home....I tired %20 and that didnt work this morning but I will let you know how the ~1 works. |
| |
May 27th, 2003, 02:19 PM
|
#4 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,382
|
If you're in XP, this shouldn't be a problem.
When you runthe batch file what is the error you're getting?
As long as you're not using any legacy applications that require the old 8.3 names you should be ok with spaces in the name.
Try running the batch file from command line so you can actually get the error message as opposed to double clickign it and the command box disappears immediately.
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
|
| |
May 27th, 2003, 02:37 PM
|
#5 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: York, PA.
Posts: 1,569
|
Should be either the ~1 or if it has spaces like C:\Program Files\ it would look like "C:\Program Files\"
You can also add a pause to the batch file this would also do the same thing that vass was saying. It will allow you to see the error. |
| |
May 27th, 2003, 11:59 PM
|
#6 (permalink)
| | Member
Join Date: Mar 2003 Location: 35.92 N 84 W
Posts: 158
|
ok this is what is in the batch file. Quote:
start C:\Program Files\Adobe\Photoshop 7.0\Photoshop.exe
start C:\Program Files\Macromedia\Dreamweaver MX\Dreamweaver.exe
start C:\Program Files\Opera7\opera.exe
start C:\Program Files\SmartFTP\SmartFTP.exe
| The error I get is Quote: |
Windows cannot find 'C:\Program'. Make sure you typed the name correctly then try again. To search for a flie, click the Start button, and then click Search.
| |
| |
May 28th, 2003, 12:03 AM
|
#7 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,382
|
try using quotes
start "C:\Program Files\Adobe\Photoshop 7.0\Photoshop.exe"
start "C:\Program Files\Macromedia\Dreamweaver MX\Dreamweaver.exe"
start "C:\Program Files\Opera7\opera.exe"
start "C:\Program Files\SmartFTP\SmartFTP.exe" |
| |
May 28th, 2003, 12:07 AM
|
#8 (permalink)
| | Member
Join Date: Mar 2003 Location: 35.92 N 84 W
Posts: 158
|
now it just opens up 4 command prompts labeled with those. |
| |
May 28th, 2003, 12:12 AM
|
#9 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: York, PA.
Posts: 1,569
|
"C:\Program Files\Adobe\Photoshop 7.0\Photoshop.exe"
"C:\Program Files\Macromedia\Dreamweaver MX\Dreamweaver.exe"
"C:\Program Files\Opera7\opera.exe"
"C:\Program Files\SmartFTP\SmartFTP.exe"
Try this
the above will work
Last edited by korgul : May 28th, 2003 at 12:17 AM.
|
| |
May 28th, 2003, 12:13 AM
|
#10 (permalink)
| | Perfetc Member
Join Date: Jan 2003 Location: Maryland Suburbia
Posts: 4,334
|
I dont think the spaces work, its trying to load c:\Program and its treating everything else after it as some sort of attribute, im surpised its not sayign invalid parameters |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |