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,779 of 42,547   
   T. Ment to Anton Shepelev   
   Re: A failed output redirection does not   
   11 Nov 19 17:09:38   
   
   From: t.ment@protocol.invalid   
      
   On Mon, 11 Nov 2019 19:37:20 +0300, Anton Shepelev wrote:   
      
   >> I'm not sure what you want.   
      
   > In  other  words,  I want to intercept the situation   
   > when in the command   
      
   >   type a > C:\NOSUCHNDIR\test.txt   
      
   > fails because the directory C:\NOSUCHNDIR  does  not   
   > exist.   
      
   Reorganinze the code to do the \NUL test first. Then you know in advance   
   whether or not what follows will succeed.   
      
   I don't know any other way.   
      
   --- 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