home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > General Tech Discussion
Ask a Tech Support Question (free)!

Create a .bat file

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2263
Discussions: 200,919, Posts: 2,379,037, Members: 246,287
Old May 27th, 2003, 10:39 AM   Digg it!   #1 (permalink)
Member
 
shotokan's Avatar
 
Join Date: Mar 2003
Location: 35.92 N 84 W
Posts: 158
Send a message via ICQ to shotokan Send a message via AIM to shotokan
Create a .bat file

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
shotokan is offline   Reply With Quote
Old May 27th, 2003, 10:43 AM     #2 (permalink)
Ultimate Member
 
DutchMaster's Avatar
 
Join Date: Oct 2001
Location: Moved to Germany
Posts: 2,397
Looks like your looking for this:
http://www.techtv.com/screensavers/a...338945,00.html

How to make a bat file is described below the link, but the article about DOS names is quite usefull for this too.
DutchMaster is offline   Reply With Quote
Old May 27th, 2003, 02:15 PM     #3 (permalink)
Member
 
shotokan's Avatar
 
Join Date: Mar 2003
Location: 35.92 N 84 W
Posts: 158
Send a message via ICQ to shotokan Send a message via AIM to shotokan
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.
shotokan is offline   Reply With Quote
Old 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.
vass0922 is online now   Reply With Quote
Old May 27th, 2003, 02:37 PM     #5 (permalink)
Ultimate Member
 
korgul's Avatar
 
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.
korgul is offline   Reply With Quote
Old May 27th, 2003, 11:59 PM     #6 (permalink)
Member
 
shotokan's Avatar
 
Join Date: Mar 2003
Location: 35.92 N 84 W
Posts: 158
Send a message via ICQ to shotokan Send a message via AIM to shotokan
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.

shotokan is offline   Reply With Quote
Old 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"
vass0922 is online now   Reply With Quote
Old May 28th, 2003, 12:07 AM     #8 (permalink)
Member
 
shotokan's Avatar
 
Join Date: Mar 2003
Location: 35.92 N 84 W
Posts: 158
Send a message via ICQ to shotokan Send a message via AIM to shotokan
now it just opens up 4 command prompts labeled with those.
shotokan is offline   Reply With Quote
Old May 28th, 2003, 12:12 AM     #9 (permalink)
Ultimate Member
 
korgul's Avatar
 
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.
korgul is offline   Reply With Quote
Old May 28th, 2003, 12:13 AM     #10 (permalink)
Perfetc Member
 
VHockey86's Avatar
 
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
VHockey86 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2844)
Why is Khalid Sheikh Mohammed even .. (9)
Obama the Muslim (9)
Is the PSU I received dead? (10)
windows vista security holes (7)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (9)
Foreign voltage (8)
A good PSU? (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Print spooler problem (10)
New Computer wont recognize XP disc (7)
Ideal cheap graph card for PC-Gamin.. (15)
EVGA 9800 gtx help with finding a g.. (8)
Recent Discussions
Browsers wont load websites (2)
Virus Doctor Popup? (1)
Help getting around port 80 for camer.. (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (31)
Foreign voltage (8)
Dept. of HS: NSA 'Helped' Develop Vis.. (15)
windows vista security holes (7)
Install XP pro and a Vista laptop ?? (9)
EVGA 9800 gtx help with finding a goo.. (8)
Modern Warfare For the PC (32)
Problem with speed step/turbo boost? (1)
monitor will not turn on at all, (0)
Modern Warfare 2: Who Bought It? (61)
World's largest Monopoly Game using G.. (330)
Print spooler problem (10)
SIS 740 and Widescreen (8)
Baffling Problem with my CPU/MoBo's. .. (0)
Display shows 3x5 inch in middle of s.. (0)
HIS HD5770 graphic card question (15)
Best file format to play on Windows H.. (0)
PSP Go bought in Japan (0)
Asus P4G8X Mobo (3)
Need hard disk drivers (4)
windows 7 internet problem (4)
What OS for a home server? (other tha.. (1)


All times are GMT -4. The time now is 05:59 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



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