Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check if a Particular Path is Mapped to Drive Letter F:

Status
Not open for further replies.

grobermatic

Technical User
Dec 21, 2002
153
GB
Hi,

I've written a BATCH file to change the mapping of drives that are avaialble on our network. However I only want to run this file if the user has the wrong drive letter mapped on their system.

Is there a way of checking if a perfticular path... ie

\\SVR_AB_01\MY_DEPT$

is mapped to a particualr drive letter (in my case F:)

and if so how can I use this as part of a conditional statement to run the BATCH file only if the user's setup is wrong.

Thanks in advance



Craig
 
Have you tried a logon script....

You can then set the drives for all machines to be the same.

lets say E: through H: then users can custom map to anything above H:
 
Hi,

Sorry I should have explained, I'm an employee of a large company IT deal with the system administration. They do currently use logon scripts but for some reason the staff on my department have the path I work with mapped to different letters and I need everyone to have it mapped as F:

I did try to get it changed through IT but I've not been able to get it done so far. I decided to improvise with my own batch file.

The file works but I just need it to be run conditionally from within Access

Any help is appreciated


Craig

 
If your code is expecting F:
You can replace the "F:\" with your "\\server_name\path\..etc" (like you have above)



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top