I don't know how it will work on a Unix drive, but you could use the VFP Toolkit for .NET and then call its Diskspace() function.
>I posted this question about two months or so ago and didn't get any replies. I'm hoping for some guru's out there to point me in the right direction.....
>
>The client (a worlwide company) wants to bill their departments by disk space usage. Each department is given a certain amount of GB or TB as a mapped drive or share as their own. Each month I need to poll each "drive" and find out how much disk space is in use, after that I do the financial calcs and print reports/invoices.
>
>The kicker here is that the "drives" are all over the world on different types of OS's. In one polling session I need to get the disk space from several hundred servers such as a WINNT 4 in Sweden, a SUN server in Houston, an HP RS6000 in Bahrain, etc.
>
>I already have SQL tables with each managed object, it's IP address, etc.
>
>Of course the question(s) would be: can I use a .Net Framework class and simply ask for the disk space usage of //SwedenNT40/ShareName or is there some sort of SNMP call or other tie into .Net that I can use.
>
>BTW, I'm doing the project in VB.Net with SQL 2000 backend.
>
>TIA !!!
>
>Best Regards,
>Jace
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer