The first time AutoStandByPro starts, it makes the folder
Before Action Files in
Documents\AutoStandByPro with a
Samples folder inside.
The files in Samples are never run: copy one up, next to the Samples folder, and change it.
Before-Sleep.bat, Before-Hibernate.bat, Before-Shutdown.bat, Before-Restart.bat, Before-LogOff.bat, Before-Lock.bat: one for each action.
Before-AllActions.bat: one file for every action; it looks at the action it is told.
Before-LongTask.bat: a job in small pieces that undoes its work and ends by itself when the action is cancelled.
Before-KeepProgramRunning.bat: starts a program and ends, so the program keeps running.
Before-AllActions.ps1: the same in PowerShell.
Every file is told the action (
%1 and
ASBP_ACTION), who started it (
ASBP_TRIGGER: Rule or Manual), the name of the rule (
ASBP_RULE) and the cancel file (
ASBP_CANCEL_FILE).