Sets file(s) to current date and time.
FileTimeTouch (file-list)
(s) file-list a delimited list of files, which may contain wildcards. (example: "*.jpg|*.bmp")
(i) always 1.
File-list is a delimited list of files, which may contain wildcards. The path is searched if the file is not found in current directory and if the directory is not specified in file-list.
Windows Vista/2008 and newer: This function may require an Administrator level account if dealing with files located in a protected directories: 'Program Files' and 'Windows'.
This function supports extended-length path names.
;Alter the time of all files in the temp directory Temp = Environment("temp") If StrSub(temp,StrLen(temp),1)!="\" Then temp=StrCat(temp,"\") FileTimeTouch("%temp%*.*") a=TimeYmdHms( ) Message("FileTimeTouch","All files in %temp% set to %a%")