|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Rename map drive
Hi
I've some problem with my script , i need to change the name mapped drive in Win 2000 and Win 98, and I don't know how to do it. I try in script use : strDrive ="Q:" Set objShell = CreateObject("Shell.Application") objShell.NameSpace(strDrive).Self.Name = "Home" but it only work's in Win Xp. In Win 98 show error about no exists object NameSpace, something like this. Please help :(
Show quote
"paw***@gmail.com" wrote: my guess is that the object NameSpace is not available in non NT-based > Hi > I've some problem with my script , i need to change the name mapped > drive in Win 2000 and Win 98, and I don't know how to do it. > I try in script use : > > strDrive ="Q:" > Set objShell = CreateObject("Shell.Application") > objShell.NameSpace(strDrive).Self.Name = "Home" > > but it only work's in Win Xp. In Win 98 show error about no exists > object NameSpace, something like this. > > Please help :( > Operatingsystems For the Windows 2000 computers use this syntax: objShell.NameSpace(strDrive & "\").Self.Name = "Home" \Rems |
|||||||||||||||||||||||