home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
127.img
/
DDOS501.ZIP
/
UNINSTAL.BAT
< prev
Wrap
DOS Batch File
|
1988-09-30
|
4KB
|
133 lines
echo off
cls
if %2x==x goto badargs
if exist %1:testdd.com %1:
if exist %1testdd.com %1
if not exist testdd.com goto notest
testdd 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.dds goto badfiles
goto argsok2
:same
copy a:uninstal.bat b: > nul
if NOT exist b:id.dds goto argsok2
del b:uninstal.bat > nul
goto badfiles
:argsok2
echo
echo This batch will un-install the DoubleDOS Software from your disk(ette).
echo The ORIGINAL DoubleDOS Software diskette should now be in drive %1,
testdd 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:\DDOS if you were
echo removing DoubleDOS from drive C in directory DDOS, and the DoubleDOS
echo 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 ║ DoubleDOS Software Un-Install Batch ║
echo ║ ─────────────────────────────────── ║
echo ║ ║
echo ╚═══════════════════════════════════════════╝
echo
if not exist id.dds goto badfiles
if errorlevel 4 goto onedrive
if exist %2doubledo.exe goto foundfiles
if not exist %2doubled2.pgm goto notthere
:foundfiles
echo
echo DoubleDOS Un-install commencing now ...
del %2doubledo.exe
del %2doubled2.pgm
del %2ddconfig.sys
goto copydone
:onedrive
if not exist b:doubledo.exe goto notthere
if not exist b:doubled2.pgm goto notthere
echo
echo DoubleDOS Un-install commencing now ...
del b:doubledo.exe
del b:doubled2.pgm
del b:ddconfig.sys
del b:uninstal.bat
cls
echo ╔═══════════════════════════════════════════╗
echo ║ ║
echo ║ DoubleDOS Software Un-Install Batch ║
echo ║ ─────────────────────────────────── ║
echo ║ ║
echo ╚═══════════════════════════════════════════╝
echo
:copydone
testdd rd %1 %2
echo
echo
echo The DoubleDOS un-install procedure has now completed successfully.
echo
echo
goto ender
:notthere
echo DoubleDOS Software is not installed on %2!
echo
echo
goto ender
:notest
echo
echo
echo The ORIGINAL DoubleDOS Software disk must be in drive %1!
echo
echo There should be a TESTDD.COM file on the input drive.
echo Check the drives entered for accuracy.
echo
echo
goto done
:badfiles
echo One or more of the DoubleDOS Software files are not found!
:badargs
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 DoubleDOS
echo Software diskette. The second drive letter is for the hard disk or
echo diskette from which the DoubleDOS Software will be removed.
echo
echo For example, you might enter UNINSTALL A: C: if you were
echo removing DoubleDOS from drive C, and the DoubleDOS diskette
echo was in drive A.
echo
echo Please restart this batch, and include both drive letters.
echo
echo
goto done
:ender
if %1x==%2x goto endone
goto done
:endone
if not exist b:uninstall.bat goto done
del b:uninstall.bat > nul
:done