[GEM Development] Batch File Ansser (for OpenGEM 4)

Shane M. Coughlan shane_coughlan at hotmail.com
Fri Jun 17 18:10:43 PDT 2005


> Yes, you're generally correct on the initial batch file syntax but don't
> count on an "else" being supported.  Use a dual if set instead.  Another
> thing to keep in mind is that if you directly invoke another batch file 
> from
> within a batch file the command processor will release the first batch 
> file
> at that point and only execute the invoked batch file.  The way to have it
> continue within the same batch file is to use the "call" command as 
> follows:
>
> :START
> @echo off
> ::
> if exist c:\gemapps\gemsys\update\update.zip goto UPDATE
> if not exist  c:\gemapps\gemsys\update\update.zip goto CONTINUE
> ::
> :UPDATE
> call c:\gemapps\gemsys\update\gemunzip.bat
> ::
> :CONTINUE
> (rest of commands in batch file)
> ::
> :EXIT
> exit
> :END

Jim, thank you so much!  I have implimented the batch files using your code, 
and it works perfectly. Now OpenGEM Release 4 looks for UPDATES and INSTALLS 
as it starts.  Perfect.

OpenGEM Release 4RC1 should be online on the 20th of June.  The final 
release will be one month after that.

Best regards

Shane
gem at shaneland.co.uk
gem.shaneland.co.uk 


More information about the gem-dev mailing list