@echo off if "%OS%" == "Windows_NT" goto WinNT if "%OS%" == "" goto Win95 echo Setup failed - your PATH has not been set goto End :WinNT set GSDLHOME=**GSDLHOME** set GSDLOS=windows set PATH=%GSDLHOME%\bin\windows\perl\bin;%GSDLHOME%\bin\windows;%GSDLHOME%\bin\script;%PATH% goto Success :Win95 if "%1" == "SetEnv" goto Win95Env REM We'll invoke a second copy of the command processor to make REM sure there's enough environment space COMMAND /E:2048 /K %0 SetEnv goto End :Win95Env set GSDLHOME=**GSDLHOME** set GSDLOS=windows set PATH="%GSDLHOME%\bin\windows\perl\bin";"%GSDLHOME%\bin\windows";"%GSDLHOME%\bin\script";"%PATH%" :Success echo Your environment has successfully been set up to run Greenstone. echo Note that these settings will only have effect within this MS-DOS echo session. You will therefore need to rerun setup.bat if you want echo to run Greenstone programs from a different MS-DOS session. :End