Link to home
Start Free TrialLog in
Avatar of dion_p1
dion_p1

asked on

Run Cacls from VBS SCRIPT

I want to run cacls from vbs script how can i do this? So i can set folder permissions on folders.
Avatar of David Lee
David Lee
Flag of United States of America image

Greetings, dion_p1.

You'll need to modify the code snippet below by adding the parameters you need to the CACLS command line.

    Dim wshShell
    Set wshShell = Application.CreateObject("WScript.Shell")
    wshShell.Run "CACLS.exe", , True
    Set wshShell = Nothing

Cheers!
ASKER CERTIFIED SOLUTION
Avatar of EDDYKT
EDDYKT
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial