How to determine if the drive is connected to the network?

I am looking for all the disks and their contents. I do not want to search for network drives. How to determine if this drive is installed on the network? What I would like next is to get the same information that the NET USE command receives?

+4
source share
2 answers

You need the GetDriveType function.

+8
source

Also, if you want to add disk deletion or check status, check this article:

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

This is the use of win32 api.

0
source

Source: https://habr.com/ru/post/1277200/


All Articles