home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 127.img / DDOS501.ZIP / UNINSTAL.BAT < prev   
DOS Batch File  |  1988-09-30  |  4KB  |  133 lines

  1. echo off
  2. cls
  3. if %2x==x goto badargs
  4. if exist %1:testdd.com %1:
  5. if exist %1testdd.com %1
  6. if not exist testdd.com goto notest
  7. testdd un %1 %2
  8. if errorlevel 4 goto same
  9. if errorlevel 3 goto slash
  10. if errorlevel 2 goto badargs
  11. if errorlevel 1 goto argsok
  12. uninstal %1: %2:
  13. :slash
  14. uninstall %1 %2\
  15. :argsok
  16. if exist %2id.dds goto badfiles
  17. goto argsok2
  18. :same
  19. copy a:uninstal.bat b: > nul
  20. if NOT exist b:id.dds goto argsok2
  21. del b:uninstal.bat > nul
  22. goto badfiles
  23. :argsok2
  24. echo     
  25. echo    This batch will un-install the DoubleDOS Software from your disk(ette).
  26. echo    The ORIGINAL DoubleDOS Software diskette should now be in drive %1,
  27. testdd ud %1 %2
  28. echo     
  29. echo    If this is not correct, then type the CTRL and BREAK keys together
  30. echo    to end this process now, and then restart providing the proper drives
  31. echo    and output directory.
  32. echo         
  33. echo    For example, you might enter   UNINSTALL A: C:\DDOS   if you were
  34. echo    removing DoubleDOS from drive C in directory DDOS, and the DoubleDOS
  35. echo    diskette was in drive A.
  36. echo         
  37. echo    If everything is OK, then this process will continue after you type a key.
  38. echo     
  39. pause
  40. cls
  41. echo        ╔═══════════════════════════════════════════╗
  42. echo        ║                                           ║
  43. echo        ║    DoubleDOS Software Un-Install Batch    ║
  44. echo        ║    ───────────────────────────────────    ║
  45. echo        ║                                           ║
  46. echo        ╚═══════════════════════════════════════════╝
  47. echo     
  48.  
  49. if not exist id.dds goto badfiles
  50. if errorlevel 4 goto onedrive
  51.  
  52. if exist %2doubledo.exe goto foundfiles
  53. if not exist %2doubled2.pgm goto notthere
  54. :foundfiles
  55. echo     
  56. echo        DoubleDOS Un-install commencing now ...
  57.  
  58. del %2doubledo.exe
  59. del %2doubled2.pgm
  60. del %2ddconfig.sys
  61. goto copydone
  62.  
  63. :onedrive
  64. if not exist b:doubledo.exe goto notthere
  65. if not exist b:doubled2.pgm goto notthere
  66. echo     
  67. echo        DoubleDOS Un-install commencing now ...
  68. del b:doubledo.exe
  69. del b:doubled2.pgm
  70. del b:ddconfig.sys
  71. del b:uninstal.bat
  72. cls
  73. echo        ╔═══════════════════════════════════════════╗
  74. echo        ║                                           ║
  75. echo        ║    DoubleDOS Software Un-Install Batch    ║
  76. echo        ║    ───────────────────────────────────    ║
  77. echo        ║                                           ║
  78. echo        ╚═══════════════════════════════════════════╝
  79. echo     
  80. :copydone
  81. testdd rd %1 %2
  82. echo         
  83. echo         
  84. echo    The DoubleDOS un-install procedure has now completed successfully.
  85. echo         
  86. echo         
  87. goto ender
  88.  
  89. :notthere
  90. echo          DoubleDOS Software is not installed on %2!
  91. echo        
  92. echo        
  93. goto ender
  94.  
  95. :notest
  96. echo         
  97. echo         
  98. echo    The ORIGINAL DoubleDOS Software disk must be in drive %1!
  99. echo        
  100. echo    There should be a TESTDD.COM file on the input drive.
  101. echo    Check the drives entered for accuracy.
  102. echo        
  103. echo         
  104. goto done
  105. :badfiles
  106. echo    One or more of the DoubleDOS Software files are not found!
  107.  
  108. :badargs
  109. echo         
  110. echo    In order for this batch to run correctly, you must supply the drive
  111. echo    letters when starting.
  112. echo         
  113. echo    The first drive letter is for the drive which contains the DoubleDOS
  114. echo    Software diskette.  The second drive letter is for the hard disk or
  115. echo    diskette from which the DoubleDOS Software will be removed.
  116. echo         
  117. echo    For example, you might enter   UNINSTALL A: C:     if you were
  118. echo    removing DoubleDOS from drive C, and the DoubleDOS diskette
  119. echo    was in drive A.
  120. echo         
  121. echo    Please restart this batch, and include both drive letters.
  122. echo         
  123. echo         
  124. goto done
  125. :ender
  126. if %1x==%2x goto endone
  127. goto done
  128. :endone    
  129. if not exist b:uninstall.bat goto done
  130. del b:uninstall.bat > nul
  131. :done
  132.  
  133.