@echo off
set a=1
echo %a%
pause
The above statements.... when I run the batch file, it normally displays 1
Then... I changed the above batch file to this:
@echo off
set aDate = %date:~0,-4%
for /f "tokens=1" %%a in ('type "d:\date.txt"^|find "%aDate%"') do set LastDate = "%%a"
echo %LastDate%
pause
It says ECHO is off
Then I changed it back to
@echo off
set a=1
echo %a%
pause
and it still says ECHO is off
.I'm completely confused.... where exactly is the problem?
[ Last edited by simplenoughappy on 2008-3-4 at 05:00 PM ]
set a=1
echo %a%
pause
The above statements.... when I run the batch file, it normally displays 1
Then... I changed the above batch file to this:
@echo off
set aDate = %date:~0,-4%
for /f "tokens=1" %%a in ('type "d:\date.txt"^|find "%aDate%"') do set LastDate = "%%a"
echo %LastDate%
pause
It says ECHO is off
Then I changed it back to
@echo off
set a=1
echo %a%
pause
and it still says ECHO is off
.I'm completely confused.... where exactly is the problem?
[ Last edited by simplenoughappy on 2008-3-4 at 05:00 PM ]
