Page 1 of 1 1
Topic Options
#119556 - 2004-05-14 08:16 AM mapped drive ok with /debug but not otherwise
eyecantw8 Offline
Fresh Scripter

Registered: 2004-01-30
Posts: 8
Loc: Australia, Victoria
hi all,

this is driving me barmy,
mixture of clients [ though mostly affects win2k/xp pro]

Code:

;========assign vars.========
$x="$$"
$s="\\server_6\" ; main application server
$u=@userid ; user's identification
$Dir=$s+$u+$x ; combine server & username
;============================

SetTime "\\server_6"
Use * /Delete
Use m: "\\server_6\elecbook"
Use p: "\\server_6\data"
Use u: $Dir
Use y: "\\films\nphysics"
Use o: "\\films\films"



all except 'use u:' map consistently. kix version 4.22 or wkix v.4.22 is used ; same result.
yet if i run the script with the /d parameter it works fine.

what else should i be looking at carefully.

on xp pro i have already ensured that the client is forced to wait for the network. it didn't really make any difference.

your feedback appreciated.

Top
#119557 - 2004-05-14 08:29 AM Re: mapped drive ok with /debug but not otherwise
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Why all the variables? Just try...

Code:
SetTime "\\server_6"
Use * /Delete
Use m: "\\server_6\elecbook"
Use p: "\\server_6\data"
Use u: "\\server_6\"+@UserID+"$$"
Use y: "\\films\nphysics"
Use o: "\\films\films"


Top
#119558 - 2004-05-14 08:57 AM Re: mapped drive ok with /debug but not otherwise
eyecantw8 Offline
Fresh Scripter

Registered: 2004-01-30
Posts: 8
Loc: Australia, Victoria
ahem, i am more dumber than i really thought i wuz.

on the pdc [nt4] in user manager, user environment profile screen, home directory > i had specified for some groups;
Connect U: \\server_6\%username%$

i am guessing that kixtart then deleted that but couldnt then remap to that drive immediately again.
i solved the problem by 'Connect Z: \\server_6 etc....'
and that worked.

is this a kixtart/ms bug? or am i just doing the wrong thing to start with. anyhoo, i am much happier now.
thankyou for again reminding me to tidy up the script. i will.

Top
#119559 - 2004-05-14 09:53 AM Re: mapped drive ok with /debug but not otherwise
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
With KiXtart versions 4.10 and above:
Variable with zero-length name ('$') is no longer resolved when used inside strings.

So you could change
Use u: "\\server_6\"+@UserID+"$$"

to this

Use u: "\\server_6\"+@UserID+"$"

But if your not using the NoVarInStrings option this "should" work (but have not tried it)

Use u: "\\server_6\@UserID$"


Top
#119560 - 2004-05-14 11:25 AM Re: mapped drive ok with /debug but not otherwise
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I would try instead:
Use * /Delete

this:
Use * /Delete /persistent

haven't seen lot of discussion about this anymore but some years back it was on the lips.
_________________________
!

download KiXnet

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.25 seconds in which 0.019 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