如何用ECHO 生成一个a.bat文件,其内容为:
echo aaaaaaaaaa>c.txt
找了好久,都说不对位,有谁知道怎么做?
注意,是纯DOS下!!!!!!!!!!!!
不要再说WIN下的,我知道^>是win用法,纯DOS怎么做啊
已经解决一部分:
echo exit |%comspec% /k prompt echo this is a text $g test.txt>test.bat
此法在DOS7.1下通过
(参考方法: %comspec% /c prompt echo this is a text $g test.txt>test.bat 不成功)
再找输入|的方法。
用$b代替$g,即可输入|
[ Last edited by qwe123456 on 2008-11-28 at 02:38 ]
echo aaaaaaaaaa>c.txt
找了好久,都说不对位,有谁知道怎么做?
注意,是纯DOS下!!!!!!!!!!!!
不要再说WIN下的,我知道^>是win用法,纯DOS怎么做啊
已经解决一部分:
echo exit |%comspec% /k prompt echo this is a text $g test.txt>test.bat
此法在DOS7.1下通过
(参考方法: %comspec% /c prompt echo this is a text $g test.txt>test.bat 不成功)
再找输入|的方法。
用$b代替$g,即可输入|
[ Last edited by qwe123456 on 2008-11-28 at 02:38 ]
