Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
417 B

// Note how this example automatically includes the current
// WMI instance in the global namespace; we can make reference
// to "Size" and "FreeSpace" parameters on the object without
// qualification.
var value = Size - FreeSpace;
var fso = new ActiveXObject("Scripting.FileSystemObject");
var logFile = fso.CreateTextFile("hosttest.log",true);
logFile.WriteLine ("The value of UsedSpace is " + value);