tbaseflug
asked on
Check Harddrive space and total drive listings for all servers
I have a list of servers (actual servers on our network) that I am returning from a SQL stored procedure query via a datareader - what I would like to do is to cycle through of the of records returened and check and display the harddrive space and drives on each of the servers - Is this even possible and if so, how?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
RonaldBiemans -
How would I displaythe results to a web page?
How would I displaythe results to a web page?
ASKER
Also, how would I use the above to reference a harddrive of a remote server?
'create your string from the variables
Dim strOutput as string = disk & " has " & space & " kb Free"
'write it to the page
response.write(strOutput)
Dim strOutput as string = disk & " has " & space & " kb Free"
'write it to the page
response.write(strOutput)
in the interim before finding out how to reference the drives on a remote server with code you could map them as local drives and set the permissions for ASPNET. It is not the best solution but certainly the easiest!
here
http://www.freevbcode.com/ShowCode.Asp?ID=5588
or you could use WMI