Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-08-2003, 01:50 PM   #1
usual suspect
 
hobey19's Avatar
 
Join Date: Jun 2002
Location: not here
Posts: 2,051
Question Batch programming

i have created a batch file, but when i double click on the icon, it scrolls through dos quickly and then it closes. i can open it in dos, but i would like to open by double clicking. i know there is a way, because i have seen it before on other programs. does anyone know how to do this? thanks for the help.

craig
__________________
the universe is against this current wave of success i'm having. -johnny drama, entourage
hobey19 is offline   Reply With Quote
Old 01-08-2003, 01:51 PM   #2
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
Add the command "pause" wherever you want it to stop running. It will then wait for a keypress before going forward.
doctorgonzo is offline   Reply With Quote
Old 01-08-2003, 02:25 PM   #3
usual suspect
 
hobey19's Avatar
 
Join Date: Jun 2002
Location: not here
Posts: 2,051
when i did that, i did it right at the beginning of the file. it came up as Press any key to continue. Then, i pressed enter, and it exited out of the program. what the program does is ask for input to copy a file from the cd drive to the hard drive, asking for the letter of the cd drive. however, it never does this with the pause command there. essentially what i am trying to do is double click the batch file icon in windows, and have it automatically open dos and run. any ideas?

Last edited by hobey19; 01-08-2003 at 02:28 PM.
hobey19 is offline   Reply With Quote
Old 01-08-2003, 02:31 PM   #4
Member (9 bit)
 
Hot Rod's Avatar
 
Join Date: Mar 2001
Location: Iowa
Posts: 413
Not sure if this is what you want but will the command CHOICE work for you.

Here is a web page with an example of how it would be used.

http://www.computerhope.com/batch.htm#1
Hot Rod is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:28 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2