Page 1 of 1 1
Topic Options
#184599 - 2008-01-16 11:16 AM network mapping labeling
SebastianMair Offline
Lurker

Registered: 2008-01-16
Posts: 1
hello,

i have a script for mapping network shares, but can i rename the shares, so that i show another name. i don´t want to use \\server\share, i want that it displays the name instead of \\server\share.
in vbs i can make this with the following:

MapDrive "M:", "\\svr1\data", "data" and the user has an m-drive with the label "data" and not "\\svr1\data"


is that possible?

with kind regards,

sebastian

Top
#184600 - 2008-01-16 11:39 AM Re: network mapping labeling [Re: SebastianMair]
mima Offline
Hey THIS is FUN

Registered: 2002-01-25
Posts: 217
Loc: Jönköping, Sweden
have just done this in our login script.

 Code:
  $RegPath = "##SRV1#DATA"
  WriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\$RegPath","_LabelFromReg","Data","REG_SZ")


where Data is what u want the user to see.


Edited by mima (2008-01-16 11:41 AM)

Top
#184607 - 2008-01-16 03:24 PM Re: network mapping labeling [Re: mima]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
There are UDFs that will blackbox it for you.
_________________________
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 978 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.05 seconds in which 0.025 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