home bbs files messages ]

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

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

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

   Message 41,774 of 42,547   
   T. Ment to Anton Shepelev   
   Re: A failed output redirection does not   
   11 Nov 19 16:08:28   
   
   From: t.ment@protocol.invalid   
      
   On Mon, 11 Nov 2019 18:42:21 +0300, Anton Shepelev wrote:   
      
   > What I need is to test whether the command   
      
   >   type a > C:\NOSUCHNDIR\test.txt   
      
   I'm not sure what you want. But to test for directory existence, NUL   
   does the trick.   
      
     if not exist \mydir\nul echo mydir missing   
      
   --- 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