home *** CD-ROM | disk | FTP | other *** search
- WinCron - Internal Variables Reference (1.40)
- ======================================
-
- A command line can contain special variables. The value of the
- variable will be substituted into the commmand line when the command
- is executed. Variables have the following form: %NAME%, where NAME is
- the name of the variable. Variable names can be upper or lower-case.
- Variables can be included in both internal and external commands.
-
- The following variables are available:
-
- %dd% - The Day (01-31)
- %mm% - The Month (01-12)
- %yy% - The Year (last 2 digits)
- %yyyy% - The Year (all 4 digits)
- %dow% - The Day of the Week number (1 to 7, where 1=Sunday)
- %dwl% - The Day of the Week (Monday, Tuesday etc)
- %dws% - The Day of the Week shortform (Mon, Tue, etc...)
- %date% - The Date in the form: YYYYMMDD
- %today% - The Date in the form: DWL MONTH DD, YYYY
- %month% - The Month (January, February, etc...)
- %mon% - The Month shortform (Jan, Feb, etc...)
- %time% - The Time in the form: HH:MM:SS
- %hh:mm% - The Time in the form: HH:MM
- %hhmm% - The Time in the form: HHMM
- (no colon - useful for filenames)
- %hour% - The hours value of the current time
- %min% - The minutes value of the current time
- %sec% - The seconds value of the current time
-
- %task% - The task description string.
- %lastrun% - The date and time the event was last run.
- Format: YYYYMMDD HH:MM:SS
- %lastdate% - The date the event was last run.
- Format: YYYYMMDD
- %count% - The number of times the task has been run.
- (includes current, EI: starts at 1)
- %timerN% - The value of specified timer 'N' (0 to 9).
- IE: %timer9%
- %sN% - String 'N' (S0 to S9).
- - Use $SETSTRING command to assign strings.
- %cname% - The Computer ID Name
- %cr% - Carriage return.
- - Useful for splitting lines in message popup boxes.
- %crlf% - Carriage return and line feed.
- - Needed for some text editors (notepad).
-
- --------------------------------------------------------------------
- Examples:
-
- * Display the current date and time in a popup message box:
- $MSG The current date is %TODAY% and the time is now %TIME%
-
- * Back up a file with the current date and time as the filename:
- $COPY "c:\my stuff\junk.txt" "c:\my stuff 2\junk.%date%-%hhmm%"
-
- <END>