@echo off
rem --- Check command line parameters
if %1?==? goto syntax
rem --- create directory
	echo.
	if not exist %1 mkdir %1
	cls
	echo Installing WinSpell in %1.  Wait...
	copy winspell.exe %1 >nul
	copy hook.dll     %1 >nul
	copy winspell.hlp %1 >nul
	copy winspell.wri %1 >nul
	copy full.dct     %1 >nul
	copy full.ndx     %1 >nul
	copy common.dct   %1 >nul
	copy asc2dct.exe  %1 >nul
	copy dct2asc.exe  %1 >nul
	copy readme.txt   %1 >nul
	copy install.bat   %1 >nul
	goto success
:syntax
	cls
	echo.
	echo syntax:  install [d:]path
	echo.
	echo where d: is the drive and path is the directory path
	echo in which WinSpell should be installed.  For instance,
	echo if you want to install WinSpell in the directory
	echo WINSPELL on drive C: the command would be:
	echo.
	echo install c:\winspell
	echo.
	echo.
	goto exit
:success
	echo.
	echo.
	echo WinSpell has been installed in %1.  Please do the following:
	echo.
	echo   1) Check for error messages such as "Insufficient disk space".
	echo     a) Fix any errors and reinstall.
	echo   2) Add %1 to the PATH environmental variable in your AUTOEXEC.BAT.
	echo   3) Print or View the WinSpell Documentation
	echo      by typing:
	echo           win %1\winspell.wri
	echo   4) Place the WINSPELL.EXE program in your Program Manager.
	echo   5) Please register this program as specified in the documentation.
	echo.
	echo.
:exit
