I need to get the free space of a Network drive, without "map drive"
DriveInfo drvInfo = new DriveInfo("\\NetworkDrive");
I try to do this but it does not work.
I need to get the free space of a Network drive, without "map drive"
DriveInfo drvInfo = new DriveInfo("\\NetworkDrive");
I try to do this but it does not work.
I believe you will need to call GetDiskFreeSpace
(Win32 API) via P/Invoke to get the disk free space of a UNC network drive.
e.g.
You could use WMI to connect to the remote computer and display the free space for each drive.
An example can be found here