i enter a .bat file but
it shows error message:
echo off
was unexpected at this time

why does this happen?
Posted on 2007-05-11 03:43:32 by wogok
@ECHO OFF

Notice the At-Sign
Posted on 2007-05-11 03:46:31 by XCHG
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
Posted on 2007-05-11 03:49:19 by wogok
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.
Posted on 2007-05-11 04:15:03 by XCHG
yup..actually i had add @ into it but now it read

xxx.bat
-was unexpected at this time
Posted on 2007-05-11 04:24:35 by wogok
i do a bit modification and it can run ady!!
anyway, thanks for the reply!  ;)
Posted on 2007-05-11 04:40:59 by wogok