Page 1 of 1 1
Topic Options
#146240 - 2005-08-23 01:49 PM little bug in my use direction
snake Offline
Fresh Scripter

Registered: 2005-08-22
Posts: 30
Loc: Germany
ok i have a use direction in my script but it dosent work

the username, password and the directorys are in variables

username = $user
password = $pw
directory = $dict = \\server\testfoler\


is this correct ?

Use u: "$dict" /User:"testdomain\' + $user + '" /Password:"' + $pw + '"

or this ?

Use u: "$dict" /User:"\\ww010\" + $user /Password:"" + $pw


Edited by snake (2005-08-23 01:50 PM)

Top
#146241 - 2005-08-23 02:40 PM Re: little bug in my use direction
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
If you are using domain based security, you do not need to include the user and password in the USE command. This would be required if you wanted to connect as a different user.

See http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Board=UBB1&Number=145208 for an wxample.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#146242 - 2005-08-23 02:49 PM Re: little bug in my use direction
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Also do not put your variables between quotes
Code:

Use u: /Del /Persistent
Use u: $dict


Top
#146243 - 2005-08-23 03:19 PM Re: little bug in my use direction
snake Offline
Fresh Scripter

Registered: 2005-08-22
Posts: 30
Loc: Germany
@Howard BullockModerator

i want to connect from a test environment to our servers .. i need my accound for this access

Top
#146244 - 2005-08-23 03:36 PM Re: little bug in my use direction
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Code:

Use u: /Del /Persistent
Use u: $dict /User:"\\ww010\"+$user /Password:$pw


Top
#146245 - 2005-08-23 04:39 PM Re: little bug in my use direction
snake Offline
Fresh Scripter

Registered: 2005-08-22
Posts: 30
Loc: Germany
ok thanks i will try it

cu tomorrow

Top
#146246 - 2005-08-23 04:54 PM Re: little bug in my use direction
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Use u: $dict+' /User:\\ww010\'+$user+' /Password:'+$pw

Edited by Les (2005-08-23 05:30 PM)
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

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 846 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.057 seconds in which 0.023 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