I would like to be able to separate vales contained in a string. I am trying to query servers for disk size and free space. If I run the following script on a machine with multiple drives, each string returns multiple values.
I need to be able to put the values into an SQL database, so the "C:" drive needs to have a separate name/value from the "D:" drive for the objDisk.deviceid, stsize, and srfree.
you could insert an if statement after the for loop that checks to see if the system has more than 1 drive, and if so build a small array that assigns each drive a unique variable name, i.e. objDisk01, 02, etc.