Click here to Skip to main content
12,690,140 members (25,672 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: WinXP Windows
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 6-Dec-12 7:20am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.170117.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100