In the windows api kernel32.dll there is a function GetDriveTypeA
it takes in a string containing the drive letter and returns an int which
means:
2 = Removable Drive
3 = Fixed Drive
4 = Remote / Network drive
5 = CDROM/DVD
6 = Ram Disk
| Is there a way to tell if path is on a local drive instead of a mapped
drive
| or network. Thanks
|
| - Fred
|
|
DriveInfo.DriveType.
But this requires a mapped drive which is something you should avoid in your
code whenever you can. Use UNC paths (\\server\path\file) to access network
shares.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.