[GEM Development] GEM.BAT fails with ChDir under FreeDOS

Warwick Barnes warwick.barnes at zetnet.co.uk
Wed Sep 27 14:58:31 PDT 2006


according to environment you are still in C:\stuff\files\other
c:\gem.bat is an absolute address not a relative one
cd c:\gemapps\gemsys might give you what you want but cd \gemaps\gemsys
certainly wont try
cd ..
cd ..
cd ..
cd gemapps
cd gemsys
well at least thats the bone idle way of making sure it comes out
correctly and i was always bone idle

course this might all be rubbish but still seems to be working on Dos 7 ?

The message <005f01c6e1b9$2083b660$0b01a8c0 at prp01>
from "John Hupp" <opengem at prpcompany.com> contains these words:

> To eliminate the more extreme circumstance: we're not talking about
> starting 
> from a current directory on another drive (e.g. D:).  It would be like 
> starting from C:\STUFF\FILES\OTHER.  And the PATH mechanism seems to work, 
> since it finds C:\GEM.BAT and begins executing that.  But then from within 
> the batch file it fails when it tries to execute CD \GEMAPPS\GEMSYS.

> I do believe that command worked OK in GEM.BAT in past versions of GEM 
> (except for FreeDOS demanding a space before the path), so perhaps it is a 
> FreeDOS problem.

> I have posted the problem in their user mail-list as well.

> ----- Original Message ----- 
> From: Ben A L Jemmett
> To: GEM Development
> Sent: Tuesday, September 26, 2006 5:07 PM
> Subject: Re: [GEM Development] GEM.BAT fails with ChDir under FreeDOS


> Quoting John Hupp <opengem at prpcompany.com>:
> > Perhaps I've unintentionally changed a PATH entry or some such.  I don't
> > think so.  At any rate, the GEM.BAT installed by GEM 6 bundled with 
> > FreeDOS
> > 1.0 fails at CD \GEMAPPS\GEMSYS if you try to start GEM from outside the
> > root directory on a pure FreeDOS machine.

> That sounds like something's broken, either in FreeDOS or in OpenGEM.

> If you're in, say, C:\STUFF\FILES\OTHER and the CD \GEMAPPS\GEMSYS does not 
> put
> you in C:\GEMAPPS\GEMSYS, then FreeDOS is broken...  I don't use it (or 
> OpenGEM,
> for that matter) so wouldn't know, but if that's the case then I'd be very
> surprised!

> If you're in, say, D:\ then CD \GEMAPPS\GEMSYS will (correctly) fail -- but 
> CD
> C:\GEMAPPS\GEMSYS won't change current drive under any version of MS-DOS 
> that I
> know of.  As such, OpenGEM's GEM.BAT should have a C: command to change 
> current
> drive at some point.  If that's after the CD \GEMAPPS\GEMSYS line then your 
> fix
> is fine, but it'd probably be equally sensible to just move the C: command 
> to
> before the CD for Shane's bugfix release *grin*

> -- 
> Regards,
> Ben A L Jemmett.
> (http://web.ukonline.co.uk/ben.jemmett/, http://www.deltasoft.com/)

> ----------------------------------------------
> This mail sent through http://www.ukonline.net
> _______________________________________________
> gem-dev mailing list
> gem-dev at simpits.org
> http://www.simpits.org/mailman/listinfo/gem-dev 

> _______________________________________________
> gem-dev mailing list
> gem-dev at simpits.org
> http://www.simpits.org/mailman/listinfo/gem-dev


More information about the gem-dev mailing list