I remember seeing somewhere a neat script that used a shell command to generate a line of output that was directed to nul. Then the script read that nul data and used it to perform additional tasks. For the life of me, I can't find it on the boards nor anywhere else. Can anyone remember or show me an example?

The idea is to run a DOS/NT command that feeds another command.

Example:

shell "%comspec% /c anycommand.exe > nul"

Do you use readline somehow?

Thanks,

Alex