1. Messy Autoexec.bat
- Posted by don cole <doncole at pacbell.net> Aug 29, 2004
- 412 views
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
2. Re: Messy Autoexec.bat
- Posted by CoJaBo <cojabo at suscom.net> Aug 29, 2004
- 414 views
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 >
3. Re: Messy Autoexec.bat
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 29, 2004
- 414 views
- Last edited Aug 30, 2004
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
4. Re: Messy Autoexec.bat
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Aug 30, 2004
- 417 views
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
5. Re: Messy Autoexec.bat
- Posted by Bernard Ryan <xotron at bluefrog.com> Aug 30, 2004
- 432 views
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
6. Re: Messy Autoexec.bat
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Aug 31, 2004
- 419 views
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