rendered paste bodyalias cmd {
var %t = $ticks
var %file = $+(",$scriptdir,output.txt,")
var %file2 = $+(",$scriptdir,outputdone.txt,")
var %line = 0
.remove %file
.remove %file2
run cmd /C $1- > %file & echo --done-- > %file2
while ($read(%file2,$lines(%file2)) != --done--) {
dll whilefix\WhileFix.dll WhileFix .
while (%line < $lines(%file)) {
if ($read(%file,%line)) { echo -aq $replace($read(%file,%line),$chr(32),$chr(160)) }
inc %line
}
}
while (%line <= $lines(%file)) {
if ($read(%file,%line)) { echo -aq $replace($read(%file,%line),$chr(32),$chr(160)) }
inc %line
}
echo -aq 4Done. Time taken: $calc($ticks - %t)
}