home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 30 fixes_v / 30-fixes_v.zip / vxrx101.zip / VRXCLEAN.CMD < prev    next >
OS/2 REXX Batch file  |  1993-09-16  |  580b  |  33 lines

  1. /*
  2.  * cleanup.cmd -- Cleans up after the InstallShield stuff.
  3.  */
  4.  
  5.  
  6. address CMD
  7.  
  8. '@echo off'
  9.  
  10. call RXFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
  11. call SysLoadFuncs
  12.  
  13. call SysSleep 10
  14.  
  15. /*
  16.  * Scan all local drives for any installation files...
  17.  */
  18.  
  19. drives = SysDriveMap( 'C', 'local' )
  20.  
  21. /* For each drive, search for .BMP files */
  22.  
  23. do while( drives <> '' )
  24.     parse var drives drive drives
  25.     drop tmp.
  26.     call SysFileTree drive || '~INS*.EXE', 'tmp', 'FO'
  27.     do i = 1 to tmp.0
  28.         'del' tmp.i
  29.     end
  30.     if( tmp.0 > 0 )then leave
  31. end
  32.  
  33.