ignore the > in echo?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
jamesfui
Posts: 50
Joined: 27 Mar 2010 23:00

ignore the > in echo?

#1 Post by jamesfui » 31 Mar 2010 07:17

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! :?

!k
Expert
Posts: 378
Joined: 17 Oct 2009 08:30
Location: Russia

Re: ignore the > in echo?

#2 Post by !k » 31 Mar 2010 08:03

echo dir /s /b *.doc "c:\user\desktop\" ^> received_list.txt >> checklist.bat

jamesfui
Posts: 50
Joined: 27 Mar 2010 23:00

Re: ignore the > in echo?

#3 Post by jamesfui » 01 Apr 2010 03:15

it works well. thanks!! :wink:

Post Reply