home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
- if %2x==x goto badargs
- if exist %1:testmm.com %1:
- if exist %1testmm.com %1
- if not exist testmm.com goto notest
- testmm un %1 %2
- if errorlevel 4 goto same
- if errorlevel 3 goto slash
- if errorlevel 2 goto badargs
- if errorlevel 1 goto argsok
- uninstal %1: %2:
- :slash
- uninstall %1 %2\
- :argsok
- if exist %2id.mm goto badfiles
- goto argsok2
- :same
- copy a:uninstal.bat b: > nul
- if NOT exist b:id.mm goto argsok2
- del b:uninstal.bat > nul
- goto badfiles
- :argsok2
- echo
- echo This batch will un-install the Magic Mirror Software from your disk(ette).
- echo The ORIGINAL Magic Mirror Software diskette should now be in drive %1,
- testmm ud %1 %2
- echo
- echo If this is not correct, then type the CTRL and BREAK keys together
- echo to end this process now, and then restart providing the proper drives
- echo and output directory.
- echo
- echo For example, you might enter UNINSTALL A: C:\MMIRROR if you were
- echo removing Magic Mirror from drive C in directory MMIRROR, and the
- echo Magic Mirror diskette was in drive A.
- echo
- echo If everything is OK, then this process will continue after you type a key.
- echo
- pause
- cls
- echo ╔══════════════════════════════════════════════╗
- echo ║ ║
- echo ║ Magic Mirror Software Un-Install Batch ║
- echo ║ ────────────────────────────────────── ║
- echo ║ ║
- echo ╚══════════════════════════════════════════════╝
- echo
-
- if not exist id.mm goto badfiles
- if errorlevel 4 goto onedrive
-
- if exist %2mm.isc goto foundfiles
- if exist %2mmconfig.com goto foundfiles
- if exist %2mmconfig.sys goto foundfiles
- if exist %2mmlib.exe goto foundfiles
- if not exist %2mmswitch.com goto notthere
- :foundfiles
- echo
- echo Magic Mirror Un-install commencing now ...
-
- del %2mm*.*
- del %2help.bat
- goto copydone
-
- :onedrive
- if not exist b:mmconfig.com goto notthere
- echo
- echo Magic Mirror Un-install commencing now ...
- del b:mm*.*
- del b:help.bat
- del b:uninstal.bat
- cls
- echo ╔══════════════════════════════════════════════╗
- echo ║ ║
- echo ║ Magic Mirror Software Un-Install Batch ║
- echo ║ ────────────────────────────────────── ║
- echo ║ ║
- echo ╚══════════════════════════════════════════════╝
- echo
- :copydone
- testmm rd %1 %2
- echo
- echo
- echo The Magic Mirror un-install procedure has now completed successfully.
- echo
- echo
- goto ender
-
- :notthere
- echo Magic Mirror Software is not installed on %2!
- echo
- echo
- goto ender
-
- :notest
- cls
- echo ╔══════════════════════════════════════════════╗
- echo ║ ║
- echo ║ Magic Mirror Software Un-Install Batch ║
- echo ║ ────────────────────────────────────── ║
- echo ║ ║
- echo ╚══════════════════════════════════════════════╝
- echo
- echo
- echo
- echo The ORIGINAL Magic Mirror Software disk must be in drive %1!
- echo
- echo There should be a TESTMM.COM file on the input drive.
- echo Check the drives entered for accuracy.
- echo
- echo
- goto done
- :badfiles
- echo One or more of the Magic Mirror Software files are not found!
-
- :badargs
- cls
- echo ╔══════════════════════════════════════════════╗
- echo ║ ║
- echo ║ Magic Mirror Software Un-Install Batch ║
- echo ║ ────────────────────────────────────── ║
- echo ║ ║
- echo ╚══════════════════════════════════════════════╝
- echo
- echo
- echo In order for this batch to run correctly, you must supply the drive
- echo letters when starting.
- echo
- echo The first drive letter is for the drive which contains the Magic Mirror
- echo Software diskette. The second drive letter is for the hard disk or
- echo diskette from which the Magic Mirror Software will be removed.
- echo
- echo For example, you might enter UNINSTALL A: C: if you were
- echo removing Magic Mirror from drive C, and the Magic Mirror diskette
- echo was in drive A.
- echo
- echo Please restart this batch, and include both drive letters.
- echo
- echo
- goto done
- :ender
- if %1\x==%2x goto endone
- goto done
- :endone
- if not exist b:uninstall.bat goto done
- del b:uninstall.bat > nul
- :done
-