Page 1 of 1 1
Topic Options
#10519 - 2001-07-16 06:14 PM Mapping Drive letters with /USER:Doimain\%username%
Anonymous
Unregistered


I have the following line in a Kix script and receive an error 1326. However if I simply substitute the users name for %username% is work just fine. It seems to only have a problem if I use substitution of some sort as with @userid or %username%.

Anyone have any ideas or had better luck then myself.

use x: "\\server\share1" /user:domain\%username%

Top
#10520 - 2001-07-16 06:27 PM Re: Mapping Drive letters with /USER:Doimain\%username%
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Looking at the Kixtart manual, you should be using -

USE E: "\\SERVER\PUBLIC" /user:@userid

If needed, it is on Page 37 of the 3.63 Manual.

HTH,

- Kent

[ 16 July 2001: Message edited by: kdyer ]

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#10521 - 2001-07-16 06:29 PM Re: Mapping Drive letters with /USER:Doimain\%username%
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
mauibum,

try one of these :

code:

use x: "\\server\share1" /user:'domain\@userid'

or :

code:

$share = "\\Server\share1"
use x: "$share" /user:'domain\@userid'

luck

Jochen

[ 16 July 2001: Message edited by: jpols ]

_________________________



Top
#10522 - 2001-07-16 06:30 PM Re: Mapping Drive letters with /USER:Doimain\%username%
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Yeah - you might want to try s(h)elling out to NET - like this ...

shell '%comspec% /c net use x: "\\server\share1" /user:domain\@userid'

-Shawn

Top
#10523 - 2001-07-16 06:37 PM Re: Mapping Drive letters with /USER:Doimain\%username%
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Shawn,

how was your vacation ?

I wouldn't use a shelled command if the Kix functionality covers all cases .. and in case of Use it can cover all ! (ok, except using next free driveletter )

Jochen

_________________________



Top
#10524 - 2001-07-16 06:50 PM Re: Mapping Drive letters with /USER:Doimain\%username%
Anonymous
Unregistered


jpols -

Thanks for the tip it worked great.

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
0 registered and 1821 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.065 seconds in which 0.037 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