Page 1 of 1 1
Topic Options
#5831 - 2000-12-15 05:23 PM mapping to hidden shares
Anonymous
Unregistered


I'm new to creating kix scripts and have a basic question.

I can get the script to map to normal NT shares without any problems, using, for example:

use s: "\\server001\common"

However, I cannot map to a hidden share, such as:

use s: "\\server001\administrators$"

I cannot find the appropriate syntax, can anybody shed light on this simple issue.

Many thanks in advance.

Top
#5832 - 2000-12-15 06:12 PM Re: mapping to hidden shares
Anonymous
Unregistered


This is how a friend showed me.

;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Machines and Servers used.
;;;;;;;;;;;;;;;;;;;;;;;;;;;

$AdminMachine = "NETWORKADMIN"
$AdminServer = "\\App-Server"

;;;;;;;;;;;;;;;;;;;;;;;;;;
;Maps we are going to use.
;;;;;;;;;;;;;;;;;;;;;;;;;;

;$AdminRoot = "\root$"
$TRAININGROOT = "\Training$"
$VER4TAPES = "\Ver4Tapes$"
$VER6TAPES = "\Ver6Tapes$"


use E: $AdminServer + $TRAININGROOT
use V: $AdminServer + $VER6TAPES
USE W: $AdminServer + $VER4TAPES

Top
#5833 - 2000-12-15 06:19 PM Re: mapping to hidden shares
Anonymous
Unregistered


Kixtart has trouble with the $ character sometimes. I map to hidden shares by adding the $ as a separate character:

USE F: $FS+@USERID+"$".

I haven't tried Pat's method, but I'm sure it also works. Use whichever method is more convenient for you. In most cases, you should be able to write a cleaner script by just adding +"$" to get to hidden shares.

Hope this helps...

Top
#5834 - 2000-12-15 06:23 PM Re: mapping to hidden shares
Jochen Administrator Offline
KiX Supporter
*****

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

try it with :

code:

use s: "\\server001\administrators$$"

Just for the case you declared $="String" earlier in your script ...

here's what the manual says :

quote:

Note: The characters @, %, or $ are normally used to indicate macros, environment strings, or variables. If you want to use these characters in a string, use @@, %%, or $$.


Jochen

[This message has been edited by jpols (edited 15 December 2000).]

_________________________



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 641 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.049 seconds in which 0.022 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