If he used return, it's maybe because he wants return all infos about disks at the same moment :
Code:
alias dinfo return $regsubex($str(t $chr(32),$calc($disk(0))),/t/g,$iif($disk($calc(\n +1)) || $disk($calc(\n +1)).type == cdrom,$disk($calc(\n + 1)).path -> $iif($disk($calc(\n +1)).type == cdrom,Cd-rom,$bytes($disk($calc(\n +1)).size,g).suf) -))


It's much cleaner with a while but I just post this for fun smile

Last edited by Wims; 06/09/07 08:02 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel