From: admin@127.0.0.1   
      
   On Wed, 03 Apr 2013 19:24:30 +0100, Mark wrote:   
      
   > I've been using this for years, especially on network drives.   
   >   
      
   Not that many, it requires NT or greater!   
      
   "if exist N:\nul" used to work in DOS/W98, but maybe not now (can't test   
   here, no local network)   
      
      
   >   
   > REM Is Drive N: mapped?   
   > set _ready=true   
   > dir N: > "%temp%\tmp$$$.dir" 2>&1   
   > find "The device is not ready" "%temp%\tmp$$$.dir" > nul   
   > if %errorlevel% EQU 0 set _ready=false   
   > find "The system cannot find the path specified" "%temp%\tmp$$$.dir" >   
   > nul   
   > if %errorlevel% EQU 0 set _ready=false   
   > if exist "%temp%\tmp$$$.dir" del "%temp%\tmp$$$.dir"   
   >   
   > REM Continue if mapped   
   > if "%_ready%"=="true" (   
   > blah blah blah...   
   > )   
   >   
   > REM Complain if not mapped   
   > if "%_ready%"=="false" (   
   > blah blah blah...   
   > )   
   >   
   >   
      
      
   --   
   It's a money /life balance.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|