Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: ICACLS Run RunWait Launch CACLS FULL File Folder Directory Permissions Rights
; ICACLS Examples ; Display Folder Permissions outputfile = "c:\temp\cacls.txt" RunWait( 'cmd.exe', '/c icacls "c:\temp" > "':outputfile:'"' ) Run(outputfile,'') ; Grant 'Everyone' FULL File Permissions outputfile = "c:\temp\cacls.txt" filename = "c:\temp\test.ext" group = "Everyone" FilePut( filename, "dummy data" ) RunWait( 'cmd.exe', '/c icacls "':filename:'" /grant "':group:'":(F) > "':outputfile:'"' ) Run(outputfile,'')
Article ID: W17954
Filename: ICACLS Code Sample.txt
File Created: 2012:12:13:10:24:36
Last Updated: 2012:12:13:10:24:36