home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,160 of 68,980   
   mokomoji to All   
   Re: CON device   
   19 Feb 18 23:23:00   
   
   From: mokomoji@naver.com   
      
   2017년 6월 7일 수요일 오전 4시 0분 42초 UTC+9, Petr Laznovsky   
   님의 말:   
   > Due debugging, want to send program output to file OR console window   
   depending on variable state:   
   >    
   > If defined VAR (set "out=file.ext") else (set "out=CON")   
   > program.exe>%out%   
   >    
   >    
   > but to console, it does not work. Is this correct way to output redirection?   
   >    
   > L.   
      
   direct pipe redirection   
   prn-windows print device    
   lpt[num]-local print device   
   com[num]-series port & modem port & lanport   
   aux-external audio Auxiliary consol   
   null-dos veriosn&windows null, none device   
   nul-nt windows version null, none device   
   clip - clipboard   
      
   use : command [<][|][>][&][&&][]pipe line command   
      
   indirect pipe redirection   
   con-consol   
      
   use   
   mode con command   
   copy con filename   
      
   SAMPLE   
   https://blog.naver.com/mokomoji/130173976377   
   https://blog.naver.com/mokomoji/130173981841   
   https://blog.naver.com/mokomoji/130173983629   
   https://blog.naver.com/mokomoji/130174037573   
      
   If defined VAR (set "out=file.ext") else (set "out=NUL")   
      
   OR   
      
   If defined VAR (set "out=file.ext")   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca