Nath That worked perfectly - many thanks.
Eric. -----Original Message----- From: Nathan Haigh [mailto:[EMAIL PROTECTED] Sent: Thursday, November 23, 2006 2:05 PM To: Eric Robertson Cc: [email protected] Subject: Re: Showing Untrapped Error Messages in a DOS Window You could specify 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. Something like this might work: cmd.exe /K your_perl.exe Nath 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
