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: 1391
Discussions: 200,507, Posts: 2,374,396, Members: 245,831
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,215
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 offline   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,215
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 offline   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? (1635)
FT HOOD attack: 7 killed 12 injured (66)
Review My Build (5)
HELP!!! What do you think of this s.. (16)
Looking for a graphic card that wil.. (30)
Assosiations (21496)
My 1st pc build (40)
Aero in Vista (7)
PC Modern Warfare 2: it's much wors.. (12)
core i7 extreme 975, nvidia 9400gt (9)
How to Ship a PC (16)
Building my first computer (13)
slaving laptop drive (7)
[F@H SPAM 11/1/09]New month . . . n.. (33)
Recent Discussions
sell cvv us-uk-eu-au...very good. who.. (0)
how to convert mod to wmv/avi/mp4/mov.. (0)
FAT32 to NTFS file system in Win2kpro (3)
Motherboards and my curse... (25)
Review My Build (5)
HELP!!! What do you think of this sys.. (16)
New Processor, Monitor will not turn .. (2)
2009 Build (4)
Internet very slow since updating AVG.. (7)
My 1st pc build (40)
Freezing During Music/Movies (1)
Windows Experience Index is screwed u.. (2)
ext. sound card laptop to stereo syst.. (2)
Remote Desktop via SSH and error mess.. (2)
Help and Support disappeared from my .. (0)
[F@H SPAM 11/1/09]New month . . . new.. (33)
Basic applications needed for "r.. (1)
core i7 extreme 975, nvidia 9400gt (9)
hard drive problem (2)
Win7 TrustedInstaller Permissions (2)
Speed up Win 7 boot time a bit (1)
Hard Drive test program (2)
wireless westell versalink model 327w (1)
New build 10 second reboot cycle! Won.. (3)
New Linksys Routers (2)


All times are GMT -4. The time now is 05:00 AM.
TechIMO Copyright 2008 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