Solved

Need vbscript to map drives based on IP address/subnet

Posted on 2008-10-22
2
795 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

Suggested Solutions

Title # Comments Views Activity
VBScript Write Column Headers 3 46
VB Script: Correction backup files and folders v3 11 31
Excel 2007 Macro to Change Column Formatting 3 43
Having trouble with a VB Script 17 32
This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

749 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