Using the %nextfiledate, %nextfiledatetime, %nextfiletime, and %nextfilesize Variables |
Top Previous Next |
These internal variables are populated by the GETNEXTFILE and GETFILE script commands.
The value of %nextfiledate, like the value of %date, is in the format mm-dd-yy (i.e., 02-16-01). This format allows you the option of using the value of %nextfiledate in a file or directory name. The more common date format mm/dd/yy (i.e. 02/16/01) is not used because the slash character is not allowed in a file or directory name.
The value of %nextfiledatetime, like the value of %datetime, contains a formatted date and time string (i.e., Sat Feb 17 11.00.22 2001).
The value of %nextfiletime, like the value of %time, is in the format hh.mm.ss (i.e., 11.00.22). This format allows you the option of using the value of %nextfiletime in a file or directory name. The more common time format hh:mm:ss (i.e. 11:00:22) form is not used because the colon character is not allowed in a file or directory name.
The %nextfilesize variable contains an integer string value corresponding to the size of the file in bytes (i.e., 66001).
The IFDATE, IFDATETIME, and IFTIME script commands may be used for conditional branching based on date and/or time values. The IFSIZE script command may be used for conditional branching based on file size.
Internal variables like %nextfiledate, %nextfiledatetime, and %nextfiletime variables should not be modified directly but their values may be assigned to intermediate user defined variables which are then used for data arithmetic with script commands like DATEADD, DATESUB, DATETIMEADD, DATETIMESUB
Related Command(s): GETNEXTFILE, GETFILE See also: Using %nextfile, %nextpath, and %nextfolder, Using %date, %datetime, and %time, Internal Script Variables |