You need to break that up a bit so your run string can pull in the variable.
As it sits, objShell.Run is putting in "strFullPath" literally into that
command.  Try:

objShell.Run “%comspec% /c echo Y| xcacls ” &  strFullPath & “  /T /C /G
Everyone:F”, 7, False

 - Andy O. 
________________________________________
From: Joseph L. Casale [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2008 4:13 PM
To: NT System Admin Issues
Subject: VBScript help

I am trying to script the change of perms on a dir, the path is stored above
as strFullPath and it creates the folder fine.
I then try to:
objShell.Run “%comspec% /c echo Y| xcacls strFullPath /T /C /G Everyone:F”,
7, Flase

which does nothing? If I go to the cmd line and type “echo Y| xcacls
<expanded path> /T /C /G Everyone:F it works?

Any ideas?

Thanks!
jlc




~ Upgrade to Next Generation Antispam/Antivirus with Ninja!    ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

Reply via email to