I'm trying to compile a very simple command in a .bat
file.
whoami > "Desktop/laptop.txt"
However, when I run it, cmd.exe
interprets it as:
whoami 1> "Desktop/laptop.txt"
This is invalid due to the number 1
added before the >
. The command does not run.
I can't find a way to get this number 1
to go away.