Skip to content

Instantly share code, notes, and snippets.

@polyrabbit
Created June 2, 2013 15:11
Show Gist options
  • Save polyrabbit/5693787 to your computer and use it in GitHub Desktop.
Save polyrabbit/5693787 to your computer and use it in GitHub Desktop.
simulate the great /tmp from Linux to Windows
; 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