Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

VBScript Icacls

$
0
0

Dear,

I dont know what wrong with below script its not sccuessfully running


OptionExplicit
Dim Obj, intRunError, strHomeFolder
Set Obj = wscript.createobject("wscript.shell") 

strHomeFolder = "C:\Program Files\Temp\"

'intRunError = Obj.run ("%COMSPEC% /c Echo Y| cacls " & strHomeFolder & " /c /g users:M ", 2, True)
Obj.Run"icacls strHomeFolder /grant:r users:(OI)M"



Support@Mytechnet.me


Viewing all articles
Browse latest Browse all 15028

Trending Articles