Click here to Skip to main content
15,881,820 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to find an automated solutions to capturing network drive free space stats into a spreadsheet. This has to be done on a daily basis. Any input would be appreciated. Thanks!

Mario
Posted

1 solution

If you are able to write .Net you could use a PerformanceCounter to get the free space on a specific machine and drive?

PerformanceCounter PerfCnt_Disk = new PerformanceCounter("LogicalDisk", "Free Megabytes", [drive letter as in "C:"], [server name]);
            float val = PerfCnt_Disk.NextValue();


From there you could simply write the values to a CSV file.

..Or if you're not a coder you could buy something off the shelf like this.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900