Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Map network share without drive ?

Reply
 
Old 08-24-2009   #1 (permalink)
Vilius Mockûnas


 
 

Map network share without drive ?

Hello,

I can map network share using Network.MapNetworkDrive , but I don't want to
use network drive letter.
Like in "net use \\serv\share /u:user pass"

I there a way to map network share without drive letter other than executing
cmd.exe with command above ?

thanks
Vilius



My System SpecsSystem Spec
Old 08-27-2009   #2 (permalink)
Francisco Mty


 
 

Re: Map network share without drive ?

Try this:

Dim WinExec, objFSO, WshShell, WSHNetwork
Set WSHNetwork = WScript.CreateObject("WScript.Network")
Set WinExec = CreateObject("WScript.Shell")
WSHNetwork.MapNetworkDrive "H:", "\\Server\C$","False","domain\user",""
WSHNetwork.MapNetworkDrive "I:", "\\Server\C$","False","domain\user",""
WSHNetwork.MapNetworkDrive "J:", "\\Server\e$","False","domain\user",""
WScript.Quit


reggards







"Vilius Mockûnas" <v_mockunas@xxxxxx> wrote in message
news:OQXhdGJJKHA.5956@xxxxxx
Quote:

> Hello,
>
> I can map network share using Network.MapNetworkDrive , but I don't want
> to use network drive letter.
> Like in "net use \\serv\share /u:user pass"
>
> I there a way to map network share without drive letter other than
> executing cmd.exe with command above ?
>
> thanks
> Vilius
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Can I share my DVD drive with XP Home user on my network Vista networking & sharing
can i automatically detect a usb drive and activate a network share? Network & Sharing
Network Share Drive Letters Disappearing Network & Sharing
Windows Calendar - Share on a Network Drive?? Vista mail
Cannot copy file from network share on NTFS drive to local NTFS drive Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46