vbscript and xcacls

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dresse
    New Member
    • Jul 2008
    • 13

    vbscript and xcacls

    Hello

    I am trying to adjust the folder permissions using vbscript and xcacls.

    The folder path that is getting its permissions modified is stored in a variable called strName.

    My script works correct like this:

    Code:
    xcacls.vbs "c:\home\Test, User" /g Domain\user:F
    However when trying to use my variable instead of the full path it does not work.

    Code:
    "xcacls.vbs " & strName & " /g Domain\user:F"
    The variable always has a value with spaces, so what kind of quotes do I have to use in order for this to work?

    Any help would be really much appreciated

    regards

    Dresse
Working...