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 40,971 of 42,547   
   Robert Roland to Todd   
   Re: How do I find drive letter for a dri   
   06 Aug 14 11:24:51   
   
   From: fake@ddress.no   
      
   On Tue, 05 Aug 2014 22:33:10 -0700, Todd  wrote:   
      
   >Any idea how to get rid of the error message?   
      
   Change   
      
   for /f "tokens=6 delims= " %%i in ('vol %%a: ^|find "drive"') do (   
      
   to:   
      
   for /f "tokens=6 delims= " %%i in ('if exist %%a:\ vol %%a: ^|find   
   "drive"') do (   
   --   
   RoRo   
      
   --- 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