@echo off
if "%1" == "" goto MESSAGE
if not "%1"=="" goto start
:start
md %1\formbase
md %1\formbase\demo
md %1\formbase\demo\ord-inv
copy zip1.exe %1\formbase
copy ordzip.exe %1\formbase\demo\ord-inv
%1
cd \formbase
zip1.exe
del zip1.exe
copy customer.fb1 %1\formbase\demo
echo off
del customer.fb1
copy datentry.fb1 %1\formbase\demo
del datentry.fb1
cd %1\formbase\demo\ord-inv
echo off
ordzip.exe
del ordzip.exe
cls
echo.
echo.
echo.
echo.
echo.
Echo  If the message "SHARE IS NOT INSTALLED" appears, Select "YES" and proceed.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
Echo To run FormBase and preview applications
Pause
cd \formbase
win FormBase %1\formbase\welcome.fb1
Goto end
:MESSAGE 
cls
echo.
echo.
echo                   Welcome to the FormBase 1.1 Hands-on Preview
echo.
echo    Before proceeding, please confirm the following requirements have been met:
echo             -Microsoft Windows 2.1 or higher is installed on your system
echo             -The Microsoft Windows directory is in your current path
echo             -You have at least 2 Megabytes of hard disk space free
echo             -The DOS command "share.exe" has been executed
echo.  
echo.
echo NOTE:  We recommend that you install the software on the C: drive, so that all
echo        macros and lookups will operate as identified in the FormBase 1.1
echo        Hands-on Preview Guide.
echo.
echo       To proceed, retype INSTALL followed by a space and a [Drive Letter]:
echo       "[Drive Letter]:" is the drive on which you want FormBase installed.
echo                                ( e.g. INSTALL C: )
echo. 
echo.
:end
