Friday, October 28, 2011

One More Time

BAD
cacls "C:\ProgramData\AppName" /E /C /T /G Users:C

BETTER
cacls "%AllUsersProfile%\AppName" /E /C /T /G Users:C


BAD
copy "somefile.txt" "C:\Program Files\AppName\" /y

BETTER
copy "%~dp0somefile.txt" "%ProgramFiles%\AppName\" /y

No comments: