Page 1 of 1 1
Topic Options
#43163 - 2003-07-22 04:22 PM USE vs NET USE
Handman Offline
Fresh Scripter

Registered: 2003-07-10
Posts: 13
[Moderator (Sealeopard): Moved thread from 'Scripts' to 'Starters' forum]

Is there a difference between these two command? I have been having problems with the USE command when I am trying to map a server through a router.

use "\\fileserver\directory" doesn't work but the same command with NET USE works.

Thanks

[ 22. July 2003, 16:25: Message edited by: sealeopard ]

Top
#43164 - 2003-07-22 04:24 PM Re: USE vs NET USE
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
what is the error code that is returned from your "USE" statement?

Add error checking to your script.

code:
? "@error @serror" 

_________________________
Home page: http://www.kixhelp.com/hb/

Top
#43165 - 2003-07-22 04:25 PM Re: USE vs NET USE
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
What's the share name? Does it have a "$"? Are you doubling it up?

What is the error message returned when the mapping fails (@ERROR " " @SERROR ?)

Top
#43166 - 2003-07-22 04:27 PM Re: USE vs NET USE
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Becasue it's incorrect syntax. Quote from the KiXtart Manual
quote:
USE LIST
USE < "*" | "device" | "resource"> /DELETE [/PERSISTENT]
USE ["device"] <"resource"> [/USER:user] [/PASSWORD:password] [/PERSISTENT]

, Thus, it's
code:
use '*' '\\fileserver\directory'
use L: '\\fileserver\directory'

_________________________
There are two types of vessels, submarines and targets.

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 735 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.051 seconds in which 0.024 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