Page 1 of 1 1
Topic Options
#176979 - 2007-06-14 03:01 PM Syntax to mount network drive
yellowdog Offline
Starting to like KiXtart

Registered: 2005-06-14
Posts: 102
Hi,
What is the kixtart syntax to mount a drive matching to the following batch command:I want the servername to be a variable also.

NET USE V: \\%SERVERNAME%\C$ /user:BIGMAN PASSWORD

I tried something like

USE V: "\\" + $machine + "\c$" " /user:administrator" " /password:"

but it doesn't work!!!!!!!!!

Thanks fo the answer

Top
#176980 - 2007-06-14 03:09 PM Re: Syntax to mount network drive [Re: yellowdog]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
 Code:
Use V: "\\" + $machine +\c$" /user:$machine+"\administrator" /password:"pw"

Top
#176983 - 2007-06-14 03:19 PM Re: Syntax to mount network drive [Re: Arend_]
yellowdog Offline
Starting to like KiXtart

Registered: 2005-06-14
Posts: 102
It doesn't work also with your syntax..............
Top
#176984 - 2007-06-14 03:27 PM Re: Syntax to mount network drive [Re: yellowdog]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
And it does work when u manually type in command prompt: "Net use v: \\computer\c$" ?
Top
#176986 - 2007-06-14 03:41 PM Re: Syntax to mount network drive [Re: Arend_]
yellowdog Offline
Starting to like KiXtart

Registered: 2005-06-14
Posts: 102
OK it's working now, one " was missing :

Use J: "\\" + $machine + "\c$" /user:+$domain+"\administrator" /password:"PSWD"

Thanks a lot for your help and the celerity you answered my post. \:\)

Top
#176987 - 2007-06-14 03:51 PM Re: Syntax to mount network drive [Re: yellowdog]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
Oops indeed, I missed a quote \:\)
Top
#176990 - 2007-06-14 04:59 PM Re: Syntax to mount network drive [Re: Arend_]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Also the + after user: was missing.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#176991 - 2007-06-14 05:16 PM Re: Syntax to mount network drive [Re: Les]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
 Originally Posted By: Les
Also the + after user: was missing.

Wich isn't really neccesary \:\)

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 (Allen) and 1607 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.059 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

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