Waltz,

This worked:
code:
if exist ("s:\computing\scripts\wksta\" + @wksta + "_dr.txt")
goto "over"
else
$PC = @wksta
$outfile = "s:\computing\scripts\wksta\" + @wksta + "_dr.txt"
For Each $Disk In DiskInfo($PC)
if redirectoutput ("") = 0 ; send it to the screen
$Disk ?
endif
if redirectoutput ($outfile,1) = 0 ; send it to the file
$Disk ?
endif
Next
endif
; send it to the screen
if redirectoutput ("") = 0
? "stuff for the screen"
endif

If I didn't have the ENDIFs after the redirectoutput commands I'd get a FOR WITHOUT NEXT error.

I took out the RETURN. I have no idea why that was in there. It was in the code I pirated from Kholm so I left it there.

Thanks!

[ 23. September 2002, 19:14: Message edited by: Shane ]