Piping that in was my first thought. I just can't seem to make it work with what I've presented. Where, in the script that I posted, do I put that "echo Y |"? I can't get the script to run if I add that in. I even tried breaking the sSyDir and cacls.exe commands apart and then adding the...
I am using the following script to automate changing permissions on our file servers using cacls.exe:
Dim oShell, FoldPerm, Calcds, oFSO
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oShell = CreateObject("WScript.Shell")
sSysDir = oFSO.GetSpecialFolder(1).Path
If Right(sSysDir,1)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.