Guest chrbar Posted May 21, 2008 Posted May 21, 2008 Hi, I've used a script in the past, but I don't remember it! I think it was a batch file in a logon script. It was a script which allow to rename the network drives with a choosen name, instead of the default name. Network drive with default name looks like: temp$ on 'ghost1' (T:\) Network drive renamed looks like: Temporary Files (T:\) Do you know which script can I use to do that? Thanks, Chris
Guest Bjarne Duelund Posted May 21, 2008 Posted May 21, 2008 Re: How to rename network drives in a logon script? Hi, This one have I seen work '---------------------------------------------------------------- Set objNetwork = Wscript.CreateObject("WScript.Network") set oShellApp=CreateObject("Shell.Application") objNetwork.MapNetworkDrive "T:", "\\ghost1\temp$" oShellApp.NameSpace("T:").Self.Name = "Temporary Files" '---------------------------------------------------------------- Just change the two last lines for further mapping/renaming. - Bjarne Duelund "chrbar" <chrbar@discussions.microsoft.com> skrev i meddelelsen news:C2478355-FD5B-4696-A79D-D61B5CF05011@microsoft.com... > Hi, > > I've used a script in the past, but I don't remember it! > > I think it was a batch file in a logon script. > It was a script which allow to rename the network drives with a choosen > name, instead of the default name. > > Network drive with default name looks like: > temp$ on 'ghost1' (T:\) > > Network drive renamed looks like: > Temporary Files (T:\) > > Do you know which script can I use to do that? > > Thanks, > Chris >
Recommended Posts