home *** CD-ROM | disk | FTP | other *** search
- @echo off
- echo.
- echo Uninstall CorelDRAW! files from Windows System dir
- echo --------------------------------------------------
- echo.
- if %1.==. goto HELP
- if not %3.==. goto HELP
- if %2. == ttf. goto DEL_TTF
- if %2. == type1. goto DEL_TYPE_1
- if %2. == dll. goto DEL_DLL
- if %2. == redist. goto DEL_REDIST
- if %2.==. goto DEL_DLL
- if %1. == ?. goto HELP
- if %1. == help. goto HELP
- goto HELP
-
- :DEL_DLL
- echo Deleting all CorelDRAW! dlls from %1
- pause
- del %1\aavga.dll
- del %1\caaplay.dll
- del %1\cdret.dll
- del %1\cdrfont.dll
- del %1\cdrmem.dll
- del %1\cdrspl.dll
- del %1\cpalette.dll
- del %1\imageman.dll
- del %1\mos_lib.dll
- del %1\mosdde.dll
- del %1\pcx16.dll
- del %1\pntcaptr.dll
- del %1\pntdlg3d.dll
- del %1\pntmeman.dll
- del %1\shwbitmp.dll
- del %1\shwengli.dll
- del %1\shwolemn.dll
- del %1\shwslide.dll
- del %1\shwsortr.dll
- del %1\shwutils.dll
- if not %2.==. goto END
-
- :DEL_TYPE_1
- echo Deleting ALL Adobe Type 1 font files from %1
- pause
- del %1\*.afm
- del %1\*.inf
- del %1\*.pfb
- if not %2.==. goto END
-
- :DEL_TTF
- echo Deleting ALL True Type font files from %1
- pause
- del %1\*.fot
- del %1\*.ttf
- if not %2.==. goto END
-
- :DEL_REDIST
- echo Deleting all Windows 3.1 redistributable files from %1
- pause
- del %1\commdlg.dll
- del %1\ddeml.dll
- del %1\olecli.dll
- del %1\olesvr.dll
- del %1\shell.dll
- del %1\toolhelp.dll
- del %1\ver.dll
- del %1\regload.exe
- del %1\winhelp.exe
- del %1\winhelp.hlp
- goto END
-
- :HELP
- echo This batch file deletes all the files copied to your Windows system
- echo directory by the CorelDRAW! install program. The format for using it is:
- echo.
- echo uninstall "winsysdir" [ "uninstall type" ]
- echo.
- echo where:
- echo "winsysdir" = Windows system directory
- echo "uninstall type" = "dll", "redist", "type1", or "ttf".
- echo "dll" -- delete CorelDRAW dlls
- echo "redist" -- delete Windows 3.1 redistributable
- echo dlls and winhelp
- echo "type1" -- delete ALL Adobe Type 1 fonts
- echo "ttf" -- delete ALL True Type fonts
- echo nothing -- "dll", "redist", "type 1" and "ttf"
- echo.
- echo example:
- echo uninstall c:\win31\system dll -- delete CorelDRAW dlls
- echo uninstall c:\windows\system -- delete dlls, redists, type 1's and true types
- echo.
- goto END
-
- :END
-