     echo off
     cls
     if %1.==. goto help

     if not exist OLDMAX.%1\*.* goto nofiles

     echo Y > rmoldmax.rsp
     erase OLDMAX.%1 < rmoldmax.rsp
     del rmoldmax.rsp

    :nofiles
     rmdir OLDMAX.%1 > nul
     cls
echo   Ŀ
echo       Directory OLDMAX.%1 has been removed.                         
echo   
     goto done

    :help
echo   Ŀ
echo                           RMOLDMAX.BAT                             
echo                                                                    
echo       This batch file will first erase all files in a selected     
echo       directory containing backup files from your 386MAX or        
echo       BLUEMAX installation, and then remove the directory.         
echo                                                                    
echo       The backup directories are named OLDMAX.n, with the          
echo       latest backup directory being the one with largest number.   
echo                                                                    
echo       A directory of OLDMAX directories follows.  When you have    
echo       selected a backup directory to remove, type:                 
echo                                                                    
echo       RMOLDMAX n                                                   
echo                                                                    
echo       Press any key to see the list of OLDMAX directories...       
echo   

     pause > nul
     cls
echo   Ŀ
echo       OLDMAX backup directories:                                   
echo   
     dir OLDMAX.* /p
echo   Ŀ
echo       Type RMOLDMAX n to remove OLDMAX directory number n.         
echo   

:done

