Solved

Need vbscript to map drives based on IP address/subnet

Posted on 2008-10-22
2
791 Views
Last Modified: 2012-05-05
I need a vbscript to determine the IP address/subnet of a pc and map drives accordingly.
If subnet is 192.168.1.x then map x:\\dc1\share, y:\\dc1\share2, etc.
If subnet is 172.16.2.x then map x:\\dc2/share, y:\\dc2\share2, etc.

0
Comment
Question by:FIFBA
2 Comments
 
LVL 38

Accepted Solution

by:
Shift-3 earned 250 total points
Comment Utility
0
 
LVL 65

Assisted Solution

by:RobSampson
RobSampson earned 250 total points
Comment Utility
Hi, you can also look at the code that I provided here:
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_23749378.html

Regards,

Rob.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Script to copy or move mouse-selected collection of files plus targets referenced by shortcuts (.lnk) The purpose of this article is to help illuminate the real challenges and options available (where they may exist) for utilizing simple scriptin…
In this article we want to have a look at the directory attributes which are used by Microsoft to store the so called Security Identifiers (SID). These SIDs plays an important role in delegating and granting permissions and in authentication of trus…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now