cmd = "%comspec% /c echo Y| xcacls " & strFullPath & " /T /C /G Everyone:F"

objShell.Run cmd, 7, Flase

 

(although I have no idea what "Flase" is)

 

Regards,

 

Michael B. Smith

MCITP:SA,EMA/MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: Joseph L. Casale [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2008 5: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