Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Map Network Drives using VB

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,337
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Map Network Drives using VB
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Map Network Drives using VB - 8/14/2001 7:36:26 AM   
  jcprince

 

Posts: 1
Score: 0
Joined: 8/14/2001
From: United Kingdom
Status: offline
How do I use WSH and VB Script to map a netowork drive programmatically? The MS site only shows a JS example.
 
 
Post #: 1
 
 Re: Map Network Drives using VB - 8/16/2001 1:57:29 AM   
  AndrewZ@dzimmer.com

 

Posts: 4
Score: 0
Joined: 8/16/2001
From: USA
Status: offline
Throw the script in here. You can usually just strip of the parens and semicolons and make it work. The objects will be the same. Define your objects with a set instead of a var. Make it look VBish.

(in reply to jcprince)
 
 
Post #: 2
 
 Re: Map Network Drives using VB - 8/17/2001 5:02:54 AM   
  Pieman

 

Posts: 10
Score: 0
Joined: 8/16/2001
From: United Kingdom
Status: offline
Try This:

Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "H:", "\\MachineName\ShareName"

(in reply to jcprince)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Map Network Drives using VB Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts