Re: Preserve Clipper error messages on screen



On Aug 29, 6:42 am, Scott Coffey <n...@xxxxxxxxxxx> wrote:
Clipper application is launched via a desktop shortcut that calls a
batch file which launches the application. If the program bombs out
for some reason, the XP command window closes and the user is returned
to the desktop.

When *I* work with the application I also have a desktop shortcut that
calls a batch file but the last line in my batch file is "CMD" which
leaves the command window open. I then launch the application by
entering the name of the executable. If the program bombs, I am able
to see the error messages issued.

I don't want the user to have to close a command window every time
they exit the application, but I also want them to be able to see any
error messages issued. Is there a way to do this?

Hi Scott

An approach which complements those already suggested would be to
append console output to a text file, eg.

APPNAME.EXE >> applog.txt

While your app's errorhandler might trap the usual runtime errors,
internal errors and GPFs usually bomb right out to DOS. Not that it's
ever happened to me. Ha ha. Their output (I recall from memory) can be
redirected at the command line as in the above example.

Richard
.



Relevant Pages

  • Preserve Clipper error messages on screen
    ... batch file which launches the application. ... When *I* work with the application I also have a desktop shortcut that ... If the program bombs, I am able ...
    (comp.lang.clipper)
  • Re: Preserve Clipper error messages on screen
    ... launches the application. ...  If the program bombs ... file but the last line in my batch file is ... "CMD" which leaves the command window open. ...
    (comp.lang.clipper)
  • Re: Cant schedule a batch file to run in the XP Pro Scheduler
    ... command window or a shortcut on the desktop. ... > If the bat file does not work from cmd, how will it work by scheduling it? ... Examples of Backup Batch ... The Partner who installed it wrote a batch file, which works fine, ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Oh for an autoexec.bat!
    ... but what I was after was a way of running said batch file ... command window, which I usually do by clicking on the icon. ... >> give me some additional DOS commands using DOSKEY. ... >> to do this every time I open a cmd window. ...
    (microsoft.public.windowsxp.general)
  • Re: Logging off session after closing application
    ... but if I run the batch file from within the ts session ... logoff the session before it comes up... ... > Could you try it in a command window? ...
    (microsoft.public.windows.terminal_services)

Loading