This Action type provides the same functionality as the Touch command line utility provided with many C++ tools. It allows you to set the last modified File Date and/or Time for a file or a set of files matching a filespec or contained in a fileset.
Details
File source
File Spec
The name of a file or a filespec (that contains wildcards) that the touch command will affect
Recurse Directories
Touch files in subdirectories that match the file spec
File Set
The name of a FileSet (created with the File Set Define action) that the touch command will affect
Touch Date/Time
Specify the date and/or time on the calendar and timepicker that will be applied to the files.
Files only
Check this option to only update files found in the set of files/folders to update.
Directories only
Check this option to only update folders found in the set of files/folders to update.
Files and directories
Check this option to update everything found in the set of files/folders to update.
Options
Touch Date
If selected, then the date of the file will be touched
Touch Time
If selected, then the time of the file will be touched (at least one of Date or Time must be selected)
Touch Read Only Files
If not checked, then read only files will be ignored
Use Now for Date/Time
The date/time will be the current date time when the action executes. If you want to specify a date/time based on a variable, then you can use the DateTime property of the action in script (see below)
Log Files Affected
Log all files that were touched