[GEM Development] batch file question (for OpenGEM 4)
Shane M. Coughlan
shane_coughlan at hotmail.com
Thu Jun 9 13:04:47 PDT 2005
Hi guys
I'm trying to work out how to add some lines to GEM.BAT so it'll look in a
folder for a file, and if the file is there it'll execute another batch
file. If the file is not there it'll just continue loading GEM. This will
be a feature for the automatic detection of new updates and applications.
I can't remember how to do it!
Is something like this along the right lines?
IF EXIST C:\GEMAPPS\GEMSYS\UPDATE\UPDATE.ZIP GOTO UPDATE ELSE GOTO 1
:UPDATE
UNZIP C:\GEMAPPS\GEMSYS\UPDATE\UPDATE.ZIP -d
GOTO 1
:1
Orrrrrrrrrr should it be something using ERRORLEVELS?
Please help!
Regards
Shane
More information about the gem-dev
mailing list