How to detect if drive is local or network drive 
Author Message
 How to detect if drive is local or network drive

Is it possible to detect from a given drive letter (E:) if this is a local drive or if it is a network drive.

--
Patrick Jox

office
http://www.*-*-*.com/

home
http://www.*-*-*.com/ (Deutsche Informationen zu Exchange & Outlook)



Fri, 18 Oct 2002 03:00:00 GMT  
 How to detect if drive is local or network drive
Checkout the API function of GetDriveType in KERNEL32.  It determines a type
of disk drive.  Returns a constant of success for the following types:
DRIVE_RAMDISK, DRIVE_REMOTE, DRIVE_FIXED, DRIVE_CDROM, and DRIVE_REMOVABLE.

HTH
--
Patrick Logan, MCSD
Senior Technical Development Advisor
McKessonHBOC -- Extended Care Solutions Group

Opinions expressed are my own and not necessarily those of McKessonHBOC.



Fri, 18 Oct 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. VB6 network drive - local drive bug

2. get drive size from network network mapped drives

3. Need help copying files from shared drive to local drive

4. local drive letter <> drive share name

5. What is network share name of local drive

6. acces to a local drive over a network

7. Show Local AND Shared (network) drives in Browseforfolder

8. mapping a network path over a local (used) drive

9. rename a drive / map network drive

10. Network drives in a drive list box control

11. Drive Listbox that works for network drive?

12. Determining if a Network Drive is a CD-ROM drive

 

 
Powered by phpBB® Forum Software