重定向符(、)的使用
更新時(shí)間:2006年12月21日 00:00:00 作者:
(1)、拷貝文件:
type file1 〉file2 ;產(chǎn)生 file2 文件
type file1 〉〉file2 ;在 file2 文件后追加
(2)、建立文件:
echo numLine = 10 〉starts.bas
echo For i = 1 To numLine 〉〉starts.bas
echo theStr = ""〉〉starts.bas
echo For j = 1 To 2 * i - 1 〉〉starts.bas
echo theStr = theStr + "*"〉〉starts.bas
echo Next 〉〉starts.bas
echo ? Space(numLine - i) + theStr 〉〉starts.bas
echo Next 〉〉starts.bas
(3)、輸出到打印機(jī):
copy starts.bas 〉prn
或 copy starts.bas 〉lpt1
type file1 〉file2 ;產(chǎn)生 file2 文件
type file1 〉〉file2 ;在 file2 文件后追加
(2)、建立文件:
echo numLine = 10 〉starts.bas
echo For i = 1 To numLine 〉〉starts.bas
echo theStr = ""〉〉starts.bas
echo For j = 1 To 2 * i - 1 〉〉starts.bas
echo theStr = theStr + "*"〉〉starts.bas
echo Next 〉〉starts.bas
echo ? Space(numLine - i) + theStr 〉〉starts.bas
echo Next 〉〉starts.bas
(3)、輸出到打印機(jī):
copy starts.bas 〉prn
或 copy starts.bas 〉lpt1
相關(guān)文章
使用 certutil 實(shí)現(xiàn) Hex2Bin 和 Base64 加解密的方法
這篇文章主要介紹了使用 certutil 實(shí)現(xiàn) Hex2Bin 和 Base64 加解密的方法,需要的朋友可以參考下2016-10-10自動(dòng)生成批量執(zhí)行SQL腳本的批處理實(shí)例演示
DBA那邊給我導(dǎo)出了所有的存儲(chǔ)、函數(shù)等等對(duì)象的創(chuàng)建腳本,有上千個(gè)文件,接下來(lái)為大家介紹下如何將這些對(duì)象創(chuàng)建腳本導(dǎo)入到另外一個(gè)庫(kù)2013-04-04admin.vbs 以管理員身份運(yùn)行程序的vbs命令
建議放到%SystemRoot%\system32目錄下,對(duì)喜歡玩cmd而且操作系統(tǒng)是win7的人有點(diǎn)用處2011-12-12實(shí)現(xiàn)Win7系統(tǒng)快速一鍵切換用戶的bat腳本
這篇文章主要介紹了實(shí)現(xiàn)Win7系統(tǒng)快速一鍵切換用戶的bat腳本,簡(jiǎn)單的一個(gè)批處理一鍵切換系統(tǒng)用戶的功能,需要的朋友可以參考下2014-06-06WinXP自動(dòng)開(kāi)機(jī)登陸WoW bat實(shí)現(xiàn)
WinXP自動(dòng)開(kāi)機(jī)登陸WoW bat實(shí)現(xiàn)...2006-11-11