|I'm created a batch file that will create two other batch files and then create a scheduled task to go with it.|
My problem is with redirecting the echo of the "install.bat" to the two new files. Any line I have with a numeric at the end drops the number in the output file. If I put in a space, it outputs to the file, but includes a space that is messing up calculations in the new bat file. Example:
echo set /a counter+=1 >> c:\SystemHealth\dailyAverage.bat
will output to the new file, but add the space causing problems.
echo set /a counter+=1>> c:\SystemHealth\dailyAverage.bat
will be missing the 1 in the new file.
Is there a way to redirect the line without the trailing space and without losing the numeric?