Re: creating script for folder permissions by UWRFREPORTER04
UWRFREPORTER04
Mon Sep 10 13:26:01 PDT 2007
A window still poped up for me when I ran it on my pc.
Set sho = Wscript.CreateObject("Wscript.Shell")
command_string = "xcacls.vbs c:\fsp\ /g SMWFCU\""Domain Users"":f /f /t /e /q"
sho.run command_string, 7, false
That's exactly what I used saved as a vbs file. A windows from
C:\windows\system32\cscript.exe pops up and sits there for a few minutes
until it's done applying all the permissions on folders and subfolders.
"dNagel" wrote:
> UWRFREPORTER04 wrote:
> > I have a small batch file used to set folder permissions, but I would like to
> > convert it to a .vbs file to run it in the background. As the way it is now,
> > a command window pops up. I don't know the syntax for creating it into a vbs.
> >
> > xcacls.vbs c:\fsp\ /g DOMAIN\"Domain Users":f /f /t /e /q
> >
> > If someone has a better idea for a script then what I'm using, I'm open to
> > any suggestions. We have a mix of 80% XP and 20% W2K.
> >
>
> for example
>
> Set sho = Wscript.CreateObject("Wscript.Shell")
> command_string = "xcacls.vbs c:\fsp\ /g DOMAIN\""Domain Users"":f /f /t
> /e /q"
> sho.run command_string, 7, false
>
> does that make it less ovbious to the end user for ya?
>
> D.
>