1. Messy Autoexec.bat

SET EUDIR=C:\EUPHORIA
SET PATH=%PATH%;C:\EUPHORIA\BIN
SET
EUINC=C:\EU\WIN32LIB;C:\EU\IDE;C:\EUPHORIA\WIN32DIB;C:\EUPHORIA\INCLUDE\FOOTBALL;C:\EU\WIN32LIB6
SET MFCEDDIR=C:\EUPHORIA


Above is part of my Autoexec.bat file.

Now I want to add another folder of include files.

e.g.
C:\EUPHORIA\INCLUDE\COLLEGE
or 
C:\EU\COLLEGE

Is there a way of doing this without having to add
;C\EUPHORIA\INCLUDE\COLLEGE
to that already messy third line?

Such as
SET EURINC=C:\EU\*
or
SET EURINC=C:\EUOHORIA\INCLUDE\*

Whereas all the files in all folders in that directory would be included?

Any help would be appreciated.

don cole
SF

new topic     » topic index » view message » categorize

2. Re: Messy Autoexec.bat

Add
SET EUINC=C:\EUPHORIA\INCLUDE\COLLEGE;C:\EU\COLLEGE;%EUINC%
after it. (;%EUINC% includes the previous EUINC variable)


don cole wrote:
> 
> SET EUDIR=C:\EUPHORIA
> SET PATH=%PATH%;C:\EUPHORIA\BIN
> SET
> EUINC=C:\EU\WIN32LIB;C:\EU\IDE;C:\EUPHORIA\WIN32DIB;C:\EUPHORIA\INCLUDE\FOOTBALL;C:\EU\WIN32LIB6
> SET MFCEDDIR=C:\EUPHORIA
> 
> 
> Above is part of my Autoexec.bat file.
> 
> Now I want to add another folder of include files.
> 
> e.g.
> C:\EUPHORIA\INCLUDE\COLLEGE
> or 
> C:\EU\COLLEGE
> 
> Is there a way of doing this without having to add
> ;C\EUPHORIA\INCLUDE\COLLEGE
> to that already messy third line?
> 
> Such as
> SET EURINC=C:\EU\*
> or
> SET EURINC=C:\EUOHORIA\INCLUDE\*
> 
> Whereas all the files in all folders in that directory would be included?
> 
> Any help would be appreciated.
> 
> don cole
> SF
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: Messy Autoexec.bat

CoJaBo wrote:
> 
> Add
> SET EUINC=C:\EUPHORIA\INCLUDE\COLLEGE;C:\EU\COLLEGE;%EUINC%
> after it. (;%EUINC% includes the previous EUINC variable)
> 
> 
> don cole wrote:
> > 
> > SET EUDIR=C:\EUPHORIA
> > SET PATH=%PATH%;C:\EUPHORIA\BIN
> > SET
> > EUINC=C:\EU\WIN32LIB;C:\EU\IDE;C:\EUPHORIA\WIN32DIB;C:\EUPHORIA\INCLUDE\FOOTBALL;C:\EU\WIN32LIB6
> > SET MFCEDDIR=C:\EUPHORIA
> > 
> > 
> > Above is part of my Autoexec.bat file.
> > 
> > Now I want to add another folder of include files.
> > 
> > e.g.
> > C:\EUPHORIA\INCLUDE\COLLEGE
> > or 
> > C:\EU\COLLEGE
> > 
> > Is there a way of doing this without having to add
> > ;C\EUPHORIA\INCLUDE\COLLEGE
> > to that already messy third line?
> > 
> > Such as
> > SET EURINC=C:\EU\*
> > or
> > SET EURINC=C:\EUOHORIA\INCLUDE\*
> > 
> > Whereas all the files in all folders in that directory would be included?
> > 
> > Any help would be appreciated.
> > 
> > don cole
> > SF
> >

Although CoJaBo is correct that this is one way to tidy up
your autoexec.bat, it still is valid point of discussion
about the way "include" uses search paths.

For example, I have C:\EUINC folder in which I store 3rd party
libraries and others that I have written. To organise these, 
I do have some of these in subfolders. It would be useful to
be able to tell Euphoria to automatically scan these subfolders
(but in which order?) without having me manually update
autoexec.bat (or equivalent) from time to time.

-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view message » categorize

4. Re: Messy Autoexec.bat

On Sun, 29 Aug 2004 18:08:24 -0700, Derek Parnell
<guest at RapidEuphoria.com> wrote:

>
>Although CoJaBo is correct that this is one way to tidy up
>your autoexec.bat, it still is valid point of discussion
>about the way "include" uses search paths.
>
>For example, I have C:\EUINC folder in which I store 3rd party
>libraries and others that I have written. To organise these, 
>I do have some of these in subfolders. It would be useful to
>be able to tell Euphoria to automatically scan these subfolders
>(but in which order?) without having me manually update
>autoexec.bat (or equivalent) from time to time.

I think the real problem is that the interpreter has no memory of
directories previously visited. So I cannot for example download a new
version of win32lib.ew into C:/editor/w326005 and then include it by
using "include w326005/win32lib.ew" because it will go wrong loading
any of the other 18 or so files used by win32lib.ew.

If, otoh, it maintained a sorted list of the most recent directories
included from and scanned though them in order, then not only would
the above work but your organised c:\euinc would too: you could just
say "include w326005/win32lib.ew" and the interpreter would [also] go
look in %EUINC%\w326005\

If you have duplicate file names (which, technically I guess should
generate a warning) then it is much more likely to load the right one
this way, rather than always searching in the %EUINC% order.

Regards,
Pete

new topic     » goto parent     » topic index » view message » categorize

5. Re: Messy Autoexec.bat

Derek Parnell wrote:

> For example, I have C:\EUINC folder in which I store 3rd party
> libraries and others that I have written. To organise these, 
> I do have some of these in subfolders. It would be useful to
> be able to tell Euphoria to automatically scan these subfolders
> (but in which order?) without having me manually update
> autoexec.bat (or equivalent) from time to time.
> 
> -- 
Derek:

  Why not shell out a SET C:\EUINC command at the top of your
  program that you are running ? 

Bernie

My files in archive:
http://www.rapideuphoria.com/w32engin.zip ( Recenct Update ver. 7.20 )
http://www.rapideuphoria.com/mixedlib.zip
http://www.rapideuphoria.com/eu_engin.zip
http://www.rapideuphoria.com/win32eru.zip

new topic     » goto parent     » topic index » view message » categorize

6. Re: Messy Autoexec.bat

On Mon, 30 Aug 2004 10:02:41 +0100, I wrote:

>maintained a sorted list of the most recent directories
I meant a temporary list, for the duration of the parsing of the
source of the current program, not a permanent thing, btw.

Pete

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu