資源簡介
為了方便,把關(guān)于輸入?yún)?shù)有誤的打印輸出仍然輸出到stderr控制臺屏幕上,方便及時知道輸入命令有誤.
對于命令的執(zhí)行結(jié)果無論錯誤還是正確都輸出到stdout上,即可用重定向操作符進行指向要求的打印輸出文件.
例如:
ddccitool.exe -r 10 -v -F 2 -t 1000 /dev
則按正常輸出到屏幕上.
ddccitool.exe -r 10 -v -F 2 -t 1000 /dev >aout.txt
則結(jié)果會輸出到當前目錄的aout.txt文件上.并覆蓋aout.txt原來的內(nèi)容.
ddccitool.exe -r 10 -v -F 2 -t 1000 /dev >>aout.txt
則結(jié)果會輸出到當前目錄的aout.txt文件上.并以追加的方式,而不會覆蓋aout.txt原來的內(nèi)容.
每一次以============================隔開.
代碼片段和文件信息
/*
????ddc/ci?interface?program
????Copyright(c)?2004?Oleg?I.?Vdovikin?(oleg@cs.msu.su)
????This?program?is?free?software;?you?can?redistribute?it?and/or?modify
????it?under?the?terms?of?the?GNU?General?Public?License?as?published?by
????the?Free?Software?Foundation;?either?version?2?of?the?License?or
????(at?your?option)?any?later?version.
????This?program?is?distributed?in?the?hope?that?it?will?be?useful
????but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
????MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the
????GNU?General?Public?License?for?more?details.
????You?should?have?received?a?copy?of?the?GNU?General?Public?License
????along?with?this?program;?if?not?write?to?the?Free?Software
????Foundation?Inc.?59?Temple?Place?Suite?330?Boston?MA??02111-1307??USA
*/
/*?See?USB?Monitor?Control?Class?1.0?specification?for?control?codes
???available?at?http://www.usb.org/developers/devclass_docs/usbmon10.pdf
???ACCESS.bus?(tm)?Specifications?Version?3.
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????837??2008-12-10?10:07??ddccitool-20081210\dCuteVendorCmmd.h
?????文件??????30175??2008-12-10?11:02??ddccitool-20081210\ddcci-tool-windows.c
?????文件???????4637??2008-07-01?14:20??ddccitool-20081210\ddccitool.dsp
?????文件????????543??2008-06-30?11:15??ddccitool-20081210\ddccitool.dsw
?????文件????????628??2008-06-30?18:20??ddccitool-20081210\ddccitool.exe.manifest
?????文件??????41984??2008-12-10?11:10??ddccitool-20081210\ddccitool.ncb
?????文件?????101376??2008-12-10?11:10??ddccitool-20081210\ddccitool.opt
?????文件???????1495??2008-12-10?11:10??ddccitool-20081210\ddccitool.plg
?????文件????????882??2008-08-07?10:30??ddccitool-20081210\ddccitool.sln
????..A..H.??????8704??2008-12-10?11:05??ddccitool-20081210\ddccitool.suo
?????文件???????6128??2008-08-07?10:30??ddccitool-20081210\ddccitool.vcproj
?????文件???????1409??2008-12-10?11:05??ddccitool-20081210\ddccitool.vcproj.ABC123.neil.user
?????文件???????1411??2008-08-07?10:30??ddccitool-20081210\ddccitool.vcproj.NEILGAO.neil.user
?????文件???????6463??2003-10-26?11:10??ddccitool-20081210\getopt.c
?????文件???????2075??2003-10-26?11:10??ddccitool-20081210\getopt.h
?????文件??????87552??2008-07-14?13:33??ddccitool-20081210\PC?software?interaction.doc
?????文件????????570??2008-09-23?16:02??ddccitool-20081210\readme.txt
?????文件???????2058??2008-07-01?14:15??ddccitool-20081210\usbrw.cpp
?????文件????????431??2008-07-01?13:39??ddccitool-20081210\usbrw.h
?????目錄??????????0??2008-12-10?11:10??ddccitool-20081210
-----------?---------??----------?-----??----
???????????????299576????????????????????21
評論
共有 條評論