|For some reason, when I run any code along these lines:|
It creates the file, but what is echoed into the file is just "ECHO is off" or "ECHO is on" depending on whether echoing is on or off.
Does anybody know why this is?
EDIT: This is my real code, and I've modified it from when this topic was posted. Now nothing is echoed into the file, and it's contents are left blank.
IF EXIST NextFile.txt GOTO Continue
Set /p Input=""
SET /a FileNumber +=1
SET /p FileNumber= <NextFile.txt