#176220 - 2007-05-11 07:46 PM
Very simple question: keeping prompt open after script
|
stupid
Fresh Scripter
Registered: 2006-02-17
Posts: 18
|
I am working with a script at work here, and it closes the prompt each time I run it. I am tired of re-opening the comand prompt and navigating to my script each runthrough.
If I remember correctly, there is a command I can include to keep the window open, but I dont remember it. Thank you.
|
|
Top
|
|
|
|
#176221 - 2007-05-11 08:39 PM
Re: Very simple question: keeping prompt open after script
[Re: stupid]
|
eriqjaffe
Hey THIS is FUN
Registered: 2004-06-24
Posts: 214
Loc: Arlington Heights, IL USA
|
? "Press any key..."
Get $ Add that to the end of your script, that will keep the console open until the user presses a key.
You can also use ConText - once you set it up, the command window automatically stays open so you don't have to add any extraneous commands to your script.
Edited by eriqjaffe (2007-05-11 08:41 PM)
|
|
Top
|
|
|
|
#176223 - 2007-05-11 09:37 PM
Re: Very simple question: keeping prompt open after script
[Re: Les]
|
stupid
Fresh Scripter
Registered: 2006-02-17
Posts: 18
|
how do you do that?
(the "Press any key" didnt work)
|
|
Top
|
|
|
|
#176224 - 2007-05-11 09:43 PM
Re: Very simple question: keeping prompt open after script
[Re: stupid]
|
eriqjaffe
Hey THIS is FUN
Registered: 2004-06-24
Posts: 214
Loc: Arlington Heights, IL USA
|
Well, do you EXIT or QUIT the script? Because you have to put the code I posted before that, otherwise it will never get to my code.
Sorry, I should have specified that.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1452 anonymous users online.
|
|
|