![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Script to map a network drive as ascii character and make hidden I'm new to vbscripting and need to create a script that will map a network drive as an ascii character instead of a drive letter ie: _, make persistent and hide this drive to users, the drive will be used for installing software packages from a network share in a student lab environment. Is this possible as it was suggested to me this could be done? Do I still use the net use command? Thanks in advance Cat |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Script to map a network drive as ascii character and make hidden "Cat" <cathossie@newsgroup> wrote in message news:2ea06d52-e515-40a0-ac82-9e9048f63e55@newsgroup Quote: > I'm new to vbscripting and need to create a script that will map a > network drive as an ascii character instead of a drive letter ie: _, > make persistent and hide this drive to users, the drive will be used > for installing software packages from a network share in a student lab > environment. Is this possible as it was suggested to me this could be > done? Do I still use the net use command? > Thanks in advance > Cat Set objNetwork = CreateObject("WScript.Network") objNetwork.MapNetworkDrive "R:", "\\server\share" However, you must use a drive *letter*, not just some ASCII character. |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Script to map a network drive as ascii character and make hidden "Pegasus [MVP]" <news@newsgroup> wrote in message news:eww#SNpNKHA.1268@newsgroup Quote: > > "Cat" <cathossie@newsgroup> wrote in message > news:2ea06d52-e515-40a0-ac82-9e9048f63e55@newsgroup Quote: >> I'm new to vbscripting and need to create a script that will map a >> network drive as an ascii character instead of a drive letter ie: _, >> make persistent and hide this drive to users, the drive will be used >> for installing software packages from a network share in a student lab >> environment. Is this possible as it was suggested to me this could be >> done? Do I still use the net use command? >> Thanks in advance >> Cat > No, you do no necessarily need to use "net use". You can do it like so: > Set objNetwork = CreateObject("WScript.Network") > objNetwork.MapNetworkDrive "R:", "\\server\share" > > However, you must use a drive *letter*, not just some ASCII character. it is that is doing your software installs to reference the shared folder by its UNC. /Al |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Map network drive via logon script and launchapp.wsf error in scri | Vista networking & sharing | |||
| My pictures hidden, can not make it un hidden | General Discussion | |||
| ASCII / ANSI Character sets in Vista | Vista General | |||
| When non-ASCII creeps into script | PowerShell | |||
| Import from OE6 fails when folder name contains non-ascii character | Vista mail | |||