We use a file instead of a flag or tag to
tell Citect its time to close, before the UPS has run out.
- If you look under the control panel in NT and select the UPS
icon, you can specify any file to run before shutdown.
- Make this a simple .CMD file that creates a file called
Shutdown, File name example: Shutdown_Citect.CMD. Put this file in
system32 directory. The file Shutdown_Citect.CMD contains the
following:
Copy dummy.dum shutdown.dum
- Create a file named dummy.dum put it under the root
directory.
- Create an event, under trigger call a function example Look(),
which contains :
INT
FUNCTION
Look()
If FileExist("C:\shutdown.dum") then
FileDelete("C:\shutdown.dum");
Return 1;
else
Return 0;
end
END
- Under Action in the event write:
Shutdown();
|