i enter a .bat file but
it shows error message:
echo off
was unexpected at this time
why does this happen?
it shows error message:
echo off
was unexpected at this time
why does this happen?
@ECHO OFF
Notice the At-Sign
Notice the At-Sign
here i include my .bat file...
echo off
if not x%1 - x goto ckexist
echo **************************************************
echo * Please specify a file to test. *
echo **************************************************
goto end
: ckexist
if exist %1 goto docopy
echo **************************************************
echo * The specified file, "%1," doesn't exist *
echo **************************************************
goto end
:docopy
copy %1 testcode
masm pztest;
if errorlevel 1 goto errorend
masm pztimer;
if errorlevel 1 goto errorend
link pztest+pztimer;
if errorlevel 1 goto errorend
pztest
goto end
:errorend
echo *************************************************************
echo * An error occurred while building the precision Zen timer. *
echo *************************************************************
:end
echo off
if not x%1 - x goto ckexist
echo **************************************************
echo * Please specify a file to test. *
echo **************************************************
goto end
: ckexist
if exist %1 goto docopy
echo **************************************************
echo * The specified file, "%1," doesn't exist *
echo **************************************************
goto end
:docopy
copy %1 testcode
masm pztest;
if errorlevel 1 goto errorend
masm pztimer;
if errorlevel 1 goto errorend
link pztest+pztimer;
if errorlevel 1 goto errorend
pztest
goto end
:errorend
echo *************************************************************
echo * An error occurred while building the precision Zen timer. *
echo *************************************************************
:end
Did you even read my previous post?
When you specify the "echo" command at the beginning of the line, the line will be echoed to the screen. If you want to turn off echoing of commands, then you have to specify:
@ECHO OFF
Not ECHO OFF. There is an @ sign at the beginning.
When you specify the "echo" command at the beginning of the line, the line will be echoed to the screen. If you want to turn off echoing of commands, then you have to specify:
@ECHO OFF
Not ECHO OFF. There is an @ sign at the beginning.
yup..actually i had add @ into it but now it read
xxx.bat
-was unexpected at this time
xxx.bat
-was unexpected at this time
i do a bit modification and it can run ady!!
anyway, thanks for the reply! ;)
anyway, thanks for the reply! ;)