Jerry Dodge
Jerry Dodge

Reputation: 27276

Identify if a drive letter is a local or network drive?

I'm working on a utility which has an input for a shared folder. My app requires that the folder selected is on a remote computer, and not on the local computer. I would like to recognize if the user selects C:\ from the local computer as opposed to Z:\ which is probably a network drive. How do I validate this?

Upvotes: 4

Views: 3561

Answers (1)

David Heffernan
David Heffernan

Reputation: 612993

The function you need is GetDriveType.

Upvotes: 6

Related Questions