So, I think I may be going insane. This batch script:
@Echo on
dir > dir.txt
generates the following on the console it is run from:
dir 1>dir.txt
I expected to see simply dir > dir.txt. Any ideas why this is happening? This is on Windows XP SP2 in the standard command prompt.