You can also start the program from the console.  Or, you can use a shortcut to
launch Cmd.exe with the /K parameter and the name of your script.  For example:

cmd.exe /K perlscript


Dean

-----Original Message-----
From: Gary Hawkins [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 12:34 PM
To: Naveen Parmar; [EMAIL PROTECTED]
Subject: RE: 2 Questions


> 1) Double clicking my Perl file within Windows Explorer opens within the DOS
> window, but then closes immediately after execution.
>
> It flashes up on the screen and closes itself. Can I prevent this auto
> termination?

`pause`;

or:

system "pause";

Although pause is not documented in either cmd /? or command.com /?, it is
built in to command.com.  You'll see if you open command.com in notepad.
Cmd.exe spawns command.com when a command is executed, but cmd.exe wraps more
functionality around it, including 32-bit capability instead of 16.

/g





--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to