Determine the Drive Type Using the File System Object
Category:Files and Directories
Version Compatibility: Visual Basic 6
This is very basic code, and requires no API. I use this code to tell me if my app is being run on a network drive, or on a user's local drive. If it is being run on the network, then I don't worry too much about network access. If it is on a local machine, I check for a network connection (LAN or VPN). This is an example of how I use the code, but feel free to alter it, and use it in any way that you see fit.
Instructions: Copy the declarations and code below and paste directly into your VB project.