Solved

Need vbscript to map drives based on IP address/subnet

Posted on 2008-10-22
2
796 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 38

Accepted Solution

by:
Shift-3 earned 250 total points
ID: 22780918
0
 
LVL 65

Assisted Solution

by:RobSampson
RobSampson earned 250 total points
ID: 22781233
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well hello again!  Glad to see you've made it this far without giving up.  In this, the fourth installment of my popular series, I'm going to cover functions and subroutines, what they are, and why they are useful.  Just in case you stumbled onto th…
I met Paul Devereux (@pdevereux) today when I responded to his tweet asking “Anybody know how to automate adding files from disk to a folder in #outlook  ?”.  I replied back and told Paul that using automation, in this case scripting, to add files t…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

729 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