trapping a manual close signal

P

paul.shepherd

Hi

i have a simple file transfer script that moves files between
different directories continuously on a loop. It runs as a dos
console on the server. Trouble is I want to somehow trap the manual
shut down of it when one of my support guys hits the X or goes to
close. I want to trap this and log it. That way i know it was shut
down and didn't crash.

Any ideas how?

ta
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top