Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > VBScript
|
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 17th, 2008, 03:02 PM
Registered User
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default remove wrong network drive by subnet

hello

i'm working in a company with a number of branches, each branch have a diffrent subnet : 10.172.30 , 10.172.40, 10.172.50
each branch have a local file server that the branch user is maped to him with a login script that do all the job.

i don't know how they worked until now but what happening if the user going to another remote branch is still getting the map drives
of his branch server, and that causing to a big slow down in both branches.

i want to write a vbscript that will remove the maped drive if the user is not in his original branch.

Example:

joe working in NY and getting mapped drives every login, joe is going to LA for a couple of hours and getting the network drives of ny, and causing a big slow down in the network.

how to write a script that can compare the unc or ip or server name in the maped drives to the subnet of the user and if is getting the wrong ones delete them ?

again all the maped drives go to a local server in the branch subnet.

the thing is i don't have an idea how the script will to the "math" and see that the subnet is not of the user.

i'm not a vbscript excpert so i will happy for help with code lines.

thanks
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Publishing a page on network drive Sicklr Access 1 June 21st, 2007 12:35 AM
How to run app from network drive? nasimg VB.NET 1 January 25th, 2007 12:42 PM
How to backup database to Network Drive Jane SQL Server 2000 3 July 4th, 2005 12:37 PM
Database is located on a network drive Elton Classic ASP Databases 1 August 27th, 2003 08:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.