(imported topic written by cstoneba)
Any idea why this doesn’t work?
waithidden cmd.exe /c cacls “%SystemDrive%\pbapps” /t /e /g “Users”:c
When I run cacls “%SystemDrive%\pbapps” /t /e /g “Users”:c from the command line, it completes as expected.
(imported topic written by cstoneba)
Any idea why this doesn’t work?
waithidden cmd.exe /c cacls “%SystemDrive%\pbapps” /t /e /g “Users”:c
When I run cacls “%SystemDrive%\pbapps” /t /e /g “Users”:c from the command line, it completes as expected.
(imported comment written by MattBoyd)
If I had to guess… the quotes may be throwing off the command. CACLS is an executable, so you shouldn’t need to call it using ‘cmd.exe’
You could try something like this:
waithidden {pathname of system folder & “\cacls.exe”} {name of drive of system folder & “\pbapps”} /t /e /g “Users”:c
Alternatively, you could use createfile or appendfile to write out your CACLS command to a batch file and run it.
FWIW, I believe that CACLS is deprecated in Vista/Server 2008. You may want to check out ICACLS if you haven’t already.