Hello - here's my problem - trying to set up a lil bit of code that checks win2k disk quota and warns user if they are approaching their disk space threshold.
here's the code - (cut down for simplicity - this version doesnt really do much but should work)
Dim vol, quotauser
Set vol = CreateObject("Microsoft.DiskQuota.1")
vol.Initialize "C:\", false
quotauser = vol.finduser("insert user name here")
if quotauser.quotaused >= quotauser.threshold then
msgbox("Warning - nearing disk space limit")
end if
ok - so - why won't this work? - on running the script (by double-clicking the .vbs icon on my desktop cos I aint running it over our net til I know it works safely) - I get the following error message from Windows Script Host
Line:4
Char:1
Error: Object doesn't support this property or method
Code: 800A01B6
weird - especially since I found the finduser method of the diskquotacontrol object right there on msdn site - so - anyone got any ideas?
Thanks