I want to
print "processing text file..."
and also return an integer, so a calling batch file can see if its worked or not.

I`ve seen scraps of code to open a dos box and handle input/output, but i want to write to the one the program was run from.

Any ideas?