Index | Syntax | Notes Size



FDISK, Batch Example

Subject: How do I Redirect "FDISK /STATUS" to a file? Newsgroup: (MSDOS.Batch) Date: September 11, 2000 Thread: ----- In chronological order: ----- Peter Gregefalk (CADVision Development Corporation) Benny Pedersen (2dos.homepage.dk) Herbert Kleebauer (Fakultaet fuer Informatik, Universitaet der BW Muenchen) Todd Vargo Outsider __________________________________________________________________________  @echo off For %%v in (ls : d) do C%%v %temp%\ echo Bj@jzh`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=> scr.com echo 0DxFP,0Xx.t0P,=XtGsB4o@$?PIyU!WvX0GwUY Wv;ovBX2Gv0ExGIuht6>>scr.com echo ?A}IKuNWEg}1\H?w?@gFwjh[th{sg?_QFw?G@}~MHOpeIe=bEECSFDHQs_>>scr.com echo {O=HAwtH}1nHmzLDFBFFIS1xJt]?sE}yFwVh@ozxHmL?@opB`KEFZNO@{r>>scr.com echo }H@SuN1_{ECCRqoCvx{OokN?IZjLFB@{@{EKj@qre~aN@@{b?WzBzBu`B?>>scr.com echo WoB??o0>>scr.com rem Syntax: SCR (two numbers both between 0 & 24) Fdisk/status :: Save line 0-20 of screen output (Use SCR.COM) SCR 00 20 > scr.tmp Del scr.com If not exist sed.exe For %%v in (Rename Cls Exit) do %%v scr.tmp scr.sav :: Substitutes Hex:00 with a Space (Use GNU SED) SED "s/\x00/ /g;" scr.tmp > scr.sav For %%v in (Del Cls) do %%v scr.tmp NOTE: Herbert don't get the NULL character in the output file. We are now looking at it, (correspondence). See later Here's the new and final version. (Thanks to Dr. Herbert Kleebauer) later (scr.com ver.2) @echo Bj@jzh`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=> scr.com @echo 0DxFP,0Xx.t0P,=XtGsB4o@$?PIyU!WvX0GwUY Wv;ovBX2Gv0ExGIuht6>>scr.com @echo ?A}IKuNWKg}1\H?w?FgFwjh[thAtg?_QFw?GAC~AHOpeIe=b?GCooAt`EE>>scr.com @echo _SFDGQs_{O=HAwtH}1nHgzLDFBFFISXxJt]?sECyFGVhAozxHmL?@opB`K>>scr.com @echo EFZNUAAo}H@SuN1_{ECCRqoCvx{OokN?IZjLFB@{AAE?j@wre~aN@AA_?W>>scr.com @echo zBzBu`B?WoB??o0>>scr.com @fdisk /status @scr 0 20> scr.sav
-Top- | Syntax | Notes Size