Alas, Waltz, I couldn't get your script to run.

Kholm, your script works just fine and dandy, but it sort of hangs for a good long while (15+ seconds) before returning the prompt.

In my attempt to get the output to a text file, I tried:

code:
$PC = @wksta
if open(9, "s:\computing\scripts\" + @wksta + "_dr.txt",5) = 0
For Each $Disk In DiskInfo($PC)
$Disk ?
writeline(9, @wksta + chr(9) + $objdisk.name + chr(9) + $objdisk.filesystem + chr(9) + $objdisk.size + chr(9) + $objdisk.freespace + chr(13) + chr(10))
close (9)
Next
else
? "File open error = " @error
endif

Get $x

Return

Kinda odd. The file never opens, but the script continues to run as if it did. My screen output is:

code:
S:\COMPUT~1\scripts>kix32 dr
C: NTFS 79990847488 74390422016
00

I modified the output to use tabs instead of commas. So it spits out the drive info then spits out the two 0's, but then hangs.

Any ideas? (other than I need to learn how to do this stuff on my own [Smile]

Thanks.