Serkan
Serkan

Reputation:

How to determine whether a drive is network mounted?

I am searching for all drives and their contents. I don't want to search network drives. How can I determine if a given drive is network mounted? What I would want further is to get similar information one gets using NET USE command?

Upvotes: 5

Views: 1296

Answers (2)

mortenbpost
mortenbpost

Reputation: 1707

Also if you would like to add remove drives or check status, check this article out:

http://support.microsoft.com/kb/173011

That's using the win32 api.

Upvotes: 0

Greg Hewgill
Greg Hewgill

Reputation: 994947

You want the GetDriveType function.

Upvotes: 8

Related Questions