Babac a écrit :
wosb.EXE /run [/systray] [/ami] [/closeall] [date=[%m/%d/%y][+%d]] [time=[%h:%m:%s][+[%h:[%m:[%s]]]]] [/ptowu] [file=%f] [params=%p] [/nofilecheck] [awfile=%f] [awparams=%p] [standbywait=[%h:[%m:[%s]]]] [hibernatewait=[%h:[%m:[%s]]]] [shutdownwait=[%h:[%m:[%s]]]] [logoffwait=[%h:[%m:[%s]]]] [/force] [wait=[%h:[%m:[%s]]]] [/psbh] [/screenon] [/keepscreenon] [/repair] [/shutdown] [/standby] [/hibernate] [/dwe] [/lwl] [weekdays=[%d]] [weeks=[%d]] [repeat[=%d:[%h:[%m:[%s]]]]] [/noeveryday] [/norepeat]
where the following parameters are accepted:
/run - should be specified to run WakeupOnStandby from command line;
/systray - instructs to minimize WakeupOnStandby window to the system tray;
/ami - normally WakeupOnStandby does not allow more than one instance of itself to run at the same time. If specified this option will allow multiple instances of WakeupOnStandby to run at the same time. Maximum allowed number of simultaneously running instances is 15;
/closeall - closes all running instances of WakeupOnStandby & terminates as well. This parameter also cancels Repetitive Mode for each running instance. No other params are used with this one;
/testmsgbox - [Deprecated] (Supported for backward compatibility) Overwrites "file" parameter and displays test message box instead of running a file at wake-up event;
date - sets the date to wake up from stand-by mode or hibernation. In "%m/%d/%y" format it sets static date, where %m = Month number (January=1, February=2, ... December=12); %d = Day number; %y = Four-digit year number. In "+%d" format sets date relative to today's date. (Example: "+1" will set the date of tomorrow.) If this parameter is not specified today's date is used instead;
time - sets the time to wake-up from stand-by mode or hibernation. In "%h:%m:%s" format it sets static time, where %h = Hour number in military format; %m = Minute; %s = Second. In "+%h:%m:%s" format it sets time relative to the current time. If only two values are used, first one is interpreted as minutes and second one as seconds. In case of only one value it is interpreted as relative number of seconds. (Example: "time=+1:30", will set wake-up time 1 minute and 30 seconds ahead of current time.) If this parameter is not specified the current time plus 10 minutes is used instead;
/ptowu - specifies that the tasks below should be performed even if computer wakes up earlier than scheduled time;
file - specifies file to run after computer wakes up from stand-by mode, where %f = Full path to the file. To run several files put them into MS DOS command file with BAT extension. If file is not specified WakeupOnStandby does not perform any actions after wake-up event. This parameter could be overridden by "/testmsgbox";
params - command line parameters for the file specified by the "file" parameter. (The following special words are accepted: %DATE% = Current date in format MM.DD.YYYY; %TIME% = Current time in format HH.MM.SS; %DATETIMESTAMP% = Current date and time in format MMDDYYYYHHmmSS; %FILETIMESTAMP% = Number of 100-nanosecond intervals since January 1, 1601 in hexadecimal format);
/nofilecheck - prevents WakeupOnStandby from checking validity of file specified the 'file' parameter;
standbywait - sets time interval to wait after computer wakes up before sending it back into stand-by, where %h = Number of hours; %m = Number of minutes; %s = Number of seconds. If this parameter and 'hibernatewait' are not specified computer is not sent back into stand-by after a wake-up event and WakeupOnStandby closes. If only two values are specified (i.e., "%m:%s"), first one is interpreted as minutes and second one as seconds. In case of one value (i.e., "%s"), it is interpreted as seconds. Set this value to 0 to send computer into Stand-by mode right after it's woken up, and the specified file is run;
hibernatewait - sets time interval to wait after computer wakes up before hibernating it, where %h = Number of hours; %m = Number of minutes; %s = Number of seconds. If only two values are specified (i.e., "%m:%s"), first one is interpreted as minutes and second one as seconds. In case of one value (i.e., "%s"), it is interpreted as seconds. Set this value to 0 to hibernate system right after it's woken up, and the specified file is run;
shutdownwait - sets time interval to wait after computer wakes up before shutting it down, where %h = Number of hours; %m = Number of minutes; %s = Number of seconds. If only two values are specified (i.e., "%m:%s"), first one is interpreted as minutes and second one as seconds. In case of one value (i.e., "%s"), it is interpreted as seconds. Set this value to 0 to shut-down system right after it's woken up, and the specified file is run;
logoffwait - sets time interval to wait after computer wakes up before logging off, where %h = Number of hours; %m = Number of minutes; %s = Number of seconds. If only two values are specified (i.e., "%m:%s"), first one is interpreted as minutes and second one as seconds. In case of one value (i.e., "%s"), it is interpreted as seconds. Set this value to 0 to shut-down system right after it's woken up, and the specified file is run;
wait - sets time interval to wait after computer wakes up before WOSB closes, where %h = Number of hours; %m = Number of minutes; %s = Number of seconds. If only two values are specified (i.e., "%m:%s"), first one is interpreted as minutes and second one as seconds. In case of one value (i.e., "%s"), it is interpreted as seconds. Use this option with the '/keepscreenon' parameter in case hibernation or stand-by is not required;
/psbh - used with 'standbywait', 'hibernatewait', or 'wait' parameters. When specified will prevent system from going into stand-by mode or hibernation while waiting;
awfile - specifies file to run after the waiting time but before performing power operation (specified by either of: 'standbywait', 'hibernatewait', 'shutdownwait', 'logoffwait', 'wait' parameters), where %f = Full path to the file. To run several files put them into MS DOS command file with BAT extension;
awparams - command line parameters for the file specified by the 'awfile' parameter. (The following special words are accepted: %DATE% = Current date in format MM.DD.YYYY; %TIME% = Current time in format HH.MM.SS; %DATETIMESTAMP% = Current date and time in format MMDDYYYYHHmmSS; %FILETIMESTAMP% = Number of 100-nanosecond intervals since January 1, 1601 in hexadecimal format);
/screenon - turns screen on when resumed from suspended power mode and resumes from screen saver (does nothing if no screen saver and monitor is on);
/keepscreenon - Keep monitor on during the time period specified by 'standbywait', 'hibernatewait', 'shutdownwait', 'logoffwait' or 'wait', if '/screenon' is set as well;
/repair - Repair local area network or high-speed internet connection (where available);
/shutdown - shut-down system. The only parameter used is '/force';
/standby - sends system into stand-by mode. None of other parameters are used except '/force', '/dwe' and '/lwl';
/hibernate - hibernates system. None of other parameters are used except '/force', '/dwe' and '/lwl';
/force - used with '/shutdown', '/standby', '/hibernate', 'shutdownwait', 'standbywait', 'logoffwait', or 'hibernatewait'. If specified forces operation to perform immediately (In some cases may result in loss of data!)
/dwe - Disable Wake Events. Used with '/standby' or '/hibernate' options to send system into stand-by or hibernate it without possibility of waking it up programmatically;
/lwl - Lowest Wake-up Latency. Used with '/standby' or '/hibernate' options to send system into stand-by or hibernate it with the lowest wake-up latency (this option sends request for the hardware to wake system up as fast as possible);
weekdays - makes WOSB to operate in absolute Repetitive Mode, i.e. repeat specified tasks on certain days of the week. %d can be enumeration of weekdays separated by space or + sign (example: Sunday+Monday), or use All for every day. %d could also be a bitmask for required days (1=Sunday; 2=Monday; 4=Tuesday; 8=Wednesday; 16=Thursday; 32=Friday; 64=Saturday). Use simple addition to combine weekday bitmask values. Example: 34 = Will run WOSB on Monday & Friday. This parameter cannot be used together with 'repeat';
weeks - if 'weekdays' is set and is not zero, specifies repetition frequency in weeks: %d = 0 (or omitted) every week; %d = 1, every second week (i.e. skip 1 week); %d = 2, every third week (i.e. skip 2 weeks); %d = 3, every fourth week (i.e. skip 3 weeks). This parameter cannot be used together with 'repeat';
everyweek - if 'weekdays' is set and is not zero, will set absolute Repetitive Mode for every week. Equal to weeks=0;
repeat - makes WOSB to operate in relative Repetitive Mode, i.e. repeat specified tasks after a certain time period, where %d = Number of days; %h = Number of hours; %m = Number of minutes; %s = Number of seconds to wait before repeating. This parameter cannot be used together with 'weekdays' and/or 'weeks';
/noeveryday - removes settings to run WOSB in Repetitve Mode (when it was set by 'weekdays', or 'repeat' parameters before). None of other parameters are used;
/norepeat - same as '/noeveryday';
/? - Displays help window.