Quoting Eric Robertson <[EMAIL PROTECTED]>:

> I have a Perl program that asks for user input, does some calculations and
> then outputs the results. I've compiled this program and it opens up a DOS
> window for the input and then displays the results. I've arranged it so that
> this DOS window remains open to display these results and any errors that I
> have trapped, requiring some user input before it closes.
> 
> My problem is with any untrapped errors - the DOS window closes before these
> can be read. I know that this wouldn't happen if I opened up the DOS window
> first and then ran the .exe from within it but I would like it to be
> possible to run the .exe program from a desktop link. Is there some way that
> I could arrange for the DOS window to remain open after any such messages
> are displayed?
> 
> 
> _______________________________________________
> ActivePerl mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 


you could specifiy using the shortcut that you want to execute cmd.exe with the 
/K switch - this switch keeps the cmd.exe window open after running
the command. Somrthing like this might work:

cmd.exe /K your_perl.exe

Nath
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to