home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 November / Chip_2000-11_cd2.bin / sharewar / wincron / WinCron.CAB / variables.txt < prev    next >
Encoding:
Text File  |  2000-04-22  |  2.2 KB  |  57 lines

  1. WinCron - Internal Variables Reference (1.40)
  2. ======================================
  3.  
  4.   A command line can contain special variables. The value of the
  5. variable will be substituted into the commmand line when the command
  6. is executed. Variables have the following form: %NAME%, where NAME is
  7. the name of the variable. Variable names can be upper or lower-case.
  8. Variables can be included in both internal and external commands.
  9.  
  10. The following variables are available:
  11.  
  12. %dd%        - The Day (01-31)
  13. %mm%        - The Month (01-12)
  14. %yy%        - The Year (last 2 digits)
  15. %yyyy%    - The Year (all 4 digits)
  16. %dow%        - The Day of the Week number (1 to 7, where 1=Sunday)
  17. %dwl%        - The Day of the Week (Monday, Tuesday etc)
  18. %dws%        - The Day of the Week shortform (Mon, Tue, etc...)
  19. %date%    - The Date in the form: YYYYMMDD
  20. %today%    - The Date in the form: DWL MONTH DD, YYYY    
  21. %month%    - The Month (January, February, etc...)
  22. %mon%        - The Month shortform (Jan, Feb, etc...)
  23. %time%    - The Time in the form: HH:MM:SS
  24. %hh:mm%    - The Time in the form: HH:MM
  25. %hhmm%    - The Time in the form: HHMM
  26.          (no colon - useful for filenames)
  27. %hour%    - The hours value of the current time
  28. %min%        - The minutes value of the current time
  29. %sec%        - The seconds value of the current time
  30.  
  31. %task%    - The task description string.
  32. %lastrun%    - The date and time the event was last run.
  33.             Format: YYYYMMDD HH:MM:SS
  34. %lastdate%    - The date the event was last run.
  35.             Format: YYYYMMDD
  36. %count%    - The number of times the task has been run.
  37.             (includes current, EI: starts at 1)
  38. %timerN%    - The value of specified timer 'N' (0 to 9).
  39.           IE: %timer9%
  40. %sN%        - String 'N' (S0 to S9).
  41.         - Use $SETSTRING command to assign strings.
  42. %cname%    - The Computer ID Name
  43. %cr%        - Carriage return.
  44.         - Useful for splitting lines in  message popup boxes.
  45. %crlf%    - Carriage return and line feed.
  46.         - Needed for some text editors (notepad).
  47.  
  48. --------------------------------------------------------------------
  49. Examples:
  50.  
  51. * Display the current date and time in a popup message box:
  52.     $MSG The current date is %TODAY% and the time is now %TIME%
  53.  
  54. * Back up a file with the current date and time as the filename:
  55.     $COPY "c:\my stuff\junk.txt" "c:\my stuff 2\junk.%date%-%hhmm%"
  56.  
  57. <END>