|Hello everyone, I was wondering if it's possible to add command code to be run on the same line as an echo.|
ECHO Current number of lines: TYPE C:\files.txt
so I want to display "6 Downloaded"
6 being the value in files.txt.
I've tried this:
DIR /a-d | FIND /c /i ".PRN" > NUMfiles.cnt
SET /P numfiles=<NUMfiles.cnt
ECHO %numfiles% Downloaded.>> C:\LOG\LOG_%curdate%.log
But It WILL NOT display the value pulled from the file.. I CAN'T FIGURE OUT WHY! The method works, and there is a value in the file - but for some reason when I try to write the output to the log file there's no number. All I get is:
If anyone can tell my WHY it's not writing the value to the variable - and maybe another work around.
Thanks in advance.