Hi guys,

Thanks for the replies so far!

Where I'm going is this:

ZDU /, /i >tempfile.txt

(ZDU being a tool which tells us among other things the total disk size and the free disk space)

It's output is:

1234:13D1 - FS:NTFS - Cluster: 4k
Total: 2,080,931,840 [1984M] - Free: 1,585,020,928 [1511M]

I'd like to skip the tempfile, and directly pass the output on to a variable so that I can pull the total disk space and the free space out of it.

I think skipping the tempfile will speed up the process, prevent defragmentation, & save code in the script, especially if you consider using this tool to check the space on multiple servers and drives, and for a longer period of time, to create an excel sheet which displays fluctuations over this period.

But, if passing it directly to a variable can't be done right now, we'll just use the old way, works fine, just requires a litte more open and close commands etc.
_________________________
Regards, Jeroen. There are two ways to write error-free programs. Only the third one works.