Function and documentation at https://github.com/hi5/Touch
Example:
Code: Select all
; Touch(file = "" [, set = "0", WhichTime = "M", Reference = "0"] )
MsgBox % Touch("file.txt",1) ; store datetime stap
MsgBox % Touch("file.txt") ; update to current date & time, a shorthand for FileSetTime
MsgBox % "file.txt should be the newest file in the directory."
MsgBox % Touch("file.txt",2) ; restore old datetime stamp
Touch() ; free memory