Page 1 of 1

ignore the > in echo?

Posted: 31 Mar 2010 07:17
by jamesfui
hi do anyone know how to ignore the > in echo?
for example i am creating a simple bat checklist made from master bat show like below:

echo @echo off > checklist.bat
echo cd "c:\reports\received\" >> checklist.bat
echo dir /s /b *.doc "c:\user\desktop\" > received_list.txt >> checklist.bat

from the above, the color, bold, undrline " > "
can't be echo since it is a redirection command..
is there a way to ignore the > & insert in the echo?

thanks! :?

Re: ignore the > in echo?

Posted: 31 Mar 2010 08:03
by !k
echo dir /s /b *.doc "c:\user\desktop\" ^> received_list.txt >> checklist.bat

Re: ignore the > in echo?

Posted: 01 Apr 2010 03:15
by jamesfui
it works well. thanks!! :wink: