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,616 of 42,547   
   foxidrive to All   
   Re: Check if drive is present before run   
   03 Apr 13 20:16:41   
   
   From: not@this.address.invalid   
      
   Try this:   
      
   @echo off   
   set "LW="   
   FOR %%I in (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO If exist   
   %%I:\updates.disk SET "LW=%%I"   
   if defined LW (   
   echo ***************************   
   echo * External drive is: %LW% *   
   echo ***************************   
   ) ELSE (   
   echo **************************   
   echo * no external disk found *   
   echo **************************   
   )   
   pause   
   goto :end   
   :end   
      
      
   --   
   foxi   
      
   --- 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