重定向符(、)的使用
摘要:(1)、拷贝文件:typefile1〉file2;产生file2文件typefile1〉〉file2;在file2文件后追加(2)、建立文件...
(1)、拷贝文件:
typefile1〉file2;产生file2文件
typefile1〉〉file2;在file2文件后追加
(2)、建立文件:
echonumLine=10〉starts.bas
echoFori=1TonumLine〉〉starts.bas
echotheStr=""〉〉starts.bas
echoForj=1To2*i-1〉〉starts.bas
echotheStr=theStr+"*"〉〉starts.bas
echoNext〉〉starts.bas
echo?Space(numLine-i)+theStr〉〉starts.bas
echoNext〉〉starts.bas
(3)、输出到打印机:
copystarts.bas〉prn
或copystarts.bas〉lpt1
【重定向符(、)的使用】相关文章:
上一篇:
怎么在 DOS 下实现“软启动”?
下一篇:
config.sys 文件的基本配置语句