954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Finding Unmapped Network Share Capacity in C#

Hi,

I've looked all over the web for several days and seem to find no answer to this issue. I would appreciate any leads. Thanks in advance for your time!

I need to find the underlying disk capacity (total size) of an unmapped network share in windows (Win7, XP, Server 2008), given a UNC path (e.g. given something like "\\share_1\subdir").

I would have given up by now, if it weren't for the ability to find the underlying _free space_ of unmapped network shares, using the "GetDiskFreeSpaceEx()" Win32 function. I imagine that disk capacity is stored in a similar fashion to free space, hence retrieving it would be very similar (hence I'm somewhat infuriated with MS for not making the functionality obvious, or myself for not being able to find it thus far!)

Again, I would appreciate any knowledge you have to share on this point!

Regards,

vivri

vivri
Newbie Poster
2 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

The solution was to look into the other arguments of GetFreeDiskSpaceEx()...

vivri
Newbie Poster
2 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: