Thursday, July 6, 2017

windows - How to change drivers using network path name instead of letter.

I'm attempting to write a .bat file


When you open cmd.exe it's defaults to C drive.


There is a mapped network drive \server.name
Multiple users have access to this drive thus the drive letter is labeled differently per user.


So I want this .bat file to take DIR of the folders within \server.name or F:\ drive


My drive is mapped to F: while others might have S:
So if I share the .bat file it won't work for all users.


I want to use a command that will switch the drive using the UNC path name instead of the drive letters.


Thank you.

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...