Page 1 of 1 1
Topic Options
#70790 - 2002-10-11 02:14 PM can someone fix this....
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
it is a batch file. it is having issues in resolving the rmtshare line

code:
set server=server
set curdir=e:\dept\home

for /d %%a in (*) do rmtshare \\%server%\%%a$=%curdir%\%%a /remark:"Hidden share for %%a" /grant %%a:c /grant "domain admins":f
for /d %%a in (*) do echo y| cacls "%%a" /t /e /g "domain admins":f
for /d %%a in (*) do echo y| cacls "%%a" /t /e /c /g "%%a":c



[ 11. October 2002, 14:45: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#70791 - 2002-10-11 02:22 PM Re: can someone fix this....
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
rad, do you mean it errors out or that it does not work?
_________________________
!

download KiXnet

Top
#70792 - 2002-10-11 02:44 PM Re: can someone fix this....
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
my bad.. it does work, but it has to be run in the folder where the homeshares are... not in a cmd window sitting at the c: prompt.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#70793 - 2002-10-11 02:59 PM Re: can someone fix this....
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
not sure...
it looks like the cacls lines are not compliant for running from remote machine, but rmtshare line...
can't find quick error on that...
_________________________
!

download KiXnet

Top
#70794 - 2002-10-11 03:06 PM Re: can someone fix this....
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Why aren't you using xcalcs?
_________________________
Jack

Top
#70795 - 2002-10-11 03:53 PM Re: can someone fix this....
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
because cacls works.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#70796 - 2002-10-11 06:13 PM Re: can someone fix this....
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
True, but you can get rid of the echo command with XCACLS.
_________________________
Jack

Top
Page 1 of 1 1


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

Who's Online
0 registered and 857 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.134 seconds in which 0.103 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