Sets all File Attribute Dates to Today
;touch.ahk | |
;Brother Gabriel-Marie | |
;10:00 AM Saturday, September 16, 2017 | |
;set all file attribute dates to current date | |
Loop %0% ; For each file dropped | |
{ | |
GivenPath := %A_Index% | |
Loop %GivenPath%, 1 | |
{ | |
LongPath = %A_LoopFileLongPath% | |
FileSetTime, , %LongPath%, M | |
if(errorlevel) | |
msgbox a_lasterror | |
FileSetTime, , %LongPath%, A | |
if(errorlevel) | |
msgbox a_lasterror | |
FileSetTime, , %LongPath%, C | |
if(errorlevel) | |
msgbox a_lasterror | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment