Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


New to VB Scripting...Have a Question

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> New to VB Scripting...Have a Question
  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 >>
 New to VB Scripting...Have a Question - 6/7/2007 7:26:54 AM   
  yarish22

 

Posts: 1
Score: 0
Joined: 6/7/2007
Status: offline
I'm trying to write a logon script that will map drives for my users, but will also check to see if the drive letter I want to use is in use.
I'd like a script to check a user's mapped drives, and if any of the letters I want to use are in use, just have the script jump to the next available letter, not delete the users current mapped drives.

I've tried using a batch file, but the syntax microsoft gives you is incorrect, go figure!

Any help would be appreciated it. 

Thank you!

_____________________________

--Jason
 
 
Post #: 1
 
 RE: New to VB Scripting...Have a Question - 6/7/2007 1:30:11 PM   
  dm_4ever


Posts: 2593
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Search this forum...I remember seeing Digital.Skream post an example of something similar to this.

Basically you will be using Scripting.FileSystemObject to enumerate the current drive letters and seeng what is free. Simple example showing currently used drive letters...


      

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to yarish22)
 
 
Post #: 2
 
 
 
  

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 >> New to VB Scripting...Have a Question 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