@echo off
>>another.bat echo cd /d d:\software ^&^& for /r %%%%i in (*.txt) do @echo %%%%i
中的>>重定向符你也可写到后面,在这里在前后没有什么区别,用四个%%%%%的原因是,在批处理处理时会自动脱去两个%%,输出时就为两个%%。
@echo off
echo cd /d d:\software ^&^& for /r %%%%i in (*.txt) do @echo %%%%i>>another.bat
pause
[
Last edited by haiou327 on 2008-8-10 at 10:54 PM ]