#142102 - 2005-06-21 08:29 PM
USE command
|
angryscientist
Fresh Scripter
Registered: 2005-06-15
Posts: 18
|
Well ive hit another block in my logon script, ive read and re-read the syntax for the use statement in the manual, but the example syntax doesnt seem to indicate how im doing what im doing wrong.
Code:
FUNCTION ADDDRIVES ; *** BEGIN ADDDRIVES SUBROUTINE *** USE H: "\\filesvr\public" /PERSISTANT if @error = 0 ? "H Drive Mapped Successfully" ELSE ? @serror ENDIF USE X: "\\filesvr\users" /PERSISTANT if @error = 0 ? "X Drive Mapped Successfully" ELSE ? @serror ENDIF ENDFUNCTION
|
Top
|
|
|
|
#142105 - 2005-06-21 09:43 PM
Re: USE command
|
angryscientist
Fresh Scripter
Registered: 2005-06-15
Posts: 18
|
well les, the kixtart manual doesnt indicate what you just mentioned, so how would i know that?
in any case, it was the misspelling that was halting the script, even though it was reporting an error on the subsequent line, not the line with the typo.
|
Top
|
|
|
|
#142108 - 2005-06-22 05:03 PM
Re: USE command
|
angryscientist
Fresh Scripter
Registered: 2005-06-15
Posts: 18
|
what is the key to building a successful network? redundancy.
work in a datacenter sometime.
|
Top
|
|
|
|
#142111 - 2005-06-22 07:33 PM
Re: USE command
|
angryscientist
Fresh Scripter
Registered: 2005-06-15
Posts: 18
|
lonkero: forget it, NTDOC, that makes sense, i took the switches out. that switch just isnt really documented in the manual, and it seemed like a good idea at the time.
|
Top
|
|
|
|
#142112 - 2005-06-22 08:00 PM
Re: USE command
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11623
Loc: CA
|
Yeah, I suppose Ruud didn't feel that it required explanation as it sort of mimicks the NET USE which does have the switch as well.
For further information please take a look here.
Microsoft NET USE in XP
Quote:
/persistent:{yes | no} : Controls the use of persistent network connections. The default is the setting used last. Deviceless connections are not persistent. Yes saves all connections as they are made, and restores them at next logon. No does not save the connection being made or subsequent connections. Existing connections are restored at the next logon. Use /delete to remove persistent connections.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 507 anonymous users online.
|
|
|