source: trunk/gsdl/setup.bat@ 3403

Last change on this file since 3403 was 3403, checked in by sjboddie, 22 years ago

setup.bat now invokes a second copy of command.com when run on Windows 9x.
In this way we can set the environment space of the new command.com and
avoid running the risk of not having enough space.

  • Property svn:mime-type set to application/octet-stream
File size: 956 bytes
Line 
1@echo off
2if "%OS%" == "Windows_NT" goto WinNT
3if "%OS%" == "" goto Win95
4echo Setup failed - your PATH has not been set
5goto End
6
7:WinNT
8set GSDLHOME=**GSDLHOME**
9set GSDLOS=windows
10set PATH=%GSDLHOME%\bin\windows\perl\bin;%GSDLHOME%\bin\windows;%GSDLHOME%\bin\script;%PATH%
11goto Success
12
13:Win95
14if "%1" == "SetEnv" goto Win95Env
15REM We'll invoke a second copy of the command processor to make
16REM sure there's enough environment space
17%COMSPEC% /E:2048 /K %0 SetEnv
18goto End
19
20:Win95Env
21set GSDLHOME=**GSDLHOME**
22set GSDLOS=windows
23set PATH="%GSDLHOME%\bin\windows\perl\bin";"%GSDLHOME%\bin\windows";"%GSDLHOME%\bin\script";"%PATH%"
24
25:Success
26echo Your environment has successfully been set up to run Greenstone.
27echo Note that these settings will only have effect within this MS-DOS
28echo session. You will therefore need to rerun setup.bat if you want
29echo to run Greenstone programs from a different MS-DOS session.
30
31:End
Note: See TracBrowser for help on using the repository browser.