|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
usual suspect
Join Date: Jun 2002
Location: not here
Posts: 2,051
|
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 |
|
|
|
|
|
#2 |
|
Professional gadfly
|
Add the command "pause" wherever you want it to stop running. It will then wait for a keypress before going forward.
|
|
|
|
|
|
#3 |
|
usual suspect
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. |
|
|
|
|
|
#4 |
|
Member (9 bit)
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|