Created
June 2, 2013 15:11
-
-
Save polyrabbit/5693787 to your computer and use it in GitHub Desktop.
simulate the great /tmp from Linux to Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; simulate the great /tmp from Linux to Windows | |
if(A_TickCount>5*60*1000) { | |
msgbox, It should be run while booting, exiting now. | |
return | |
} | |
EnvGet, home, userprofile | |
tmp_path := home . "/Desktop/tmp" | |
try { | |
FileRemoveDir, % tmp_path, 1 | |
FileCreateDir, % tmp_path | |
} catch e { | |
msgbox, % "Failed for " e.what " " tmp_path | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment