Page 1 of 1 1
Topic Options
#119585 - 2004-05-14 05:21 PM XCACLS w/VAR
Trox Offline
Fresh Scripter

Registered: 2002-09-17
Posts: 34
Loc: St. Petersburg, FL
Yes, yet another lamo question but I'm stuck and need the wisdom with the KixTart Gods

I am running the following line but am not having much luck with it running with the varaiable $sPC. Any sugestions?

Code:
 Shell '%comspec% /c \\spghmbrsrv01\netlogon\XCACLS "\\"+$sPC+"\c$\Documents and Settings\All Users\Application Data\Visionsoft" /Y /C /T /G Everyone:F' 


_________________________
Thanks ~ Trox John Wayne's not dead - he's frozen. And as soon as we find the cure for cancer we're gonna thaw out the duke and he's gonna be pretty pissed off! ~Dennis Leary~

Top
#119586 - 2004-05-14 05:26 PM Re: XCACLS w/VAR
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
You are getting your quotes a little mixed up.

Try this:
Code:

Shell '%comspec% /c \\spghmbrsrv01\netlogon\XCACLS "\\'+$sPC+'\c$$\Documents and Settings\All Users\Application Data\Visionsoft" /Y /C /T /G Everyone:F'


Top
#119587 - 2004-05-14 05:32 PM Re: XCACLS w/VAR
Trox Offline
Fresh Scripter

Registered: 2002-09-17
Posts: 34
Loc: St. Petersburg, FL
Perfect. Thanks again for your help ~ Trox
_________________________
Thanks ~ Trox John Wayne's not dead - he's frozen. And as soon as we find the cure for cancer we're gonna thaw out the duke and he's gonna be pretty pissed off! ~Dennis Leary~

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.056 seconds in which 0.029 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org