Dimitris 'sehh' Michelinakis wrote:
>
> On Thu, 21 Dec 2000 00:56:46 -0500, Duane Chamblee wrote:
>
> >BTW, Dimitris... thanks. It worked... Here's a tip for REXX that you
> >might want to replace the
> >dir=directory()
> >with
> >parse source . . me . ; dir = left( me, lastpos( '\', me ) - 1 )
> >Although, it's more code, it actually uses the path where the .CMD
> >exists, not the current working directory. That way if some one runs the
> >batch from another directory, it will work...
>
> that is a very good idea! although i never had problems, your suggestion is
> a much better way. Thanks!
I wish more EXEs would use this method... ie, ask the OS where the EXE
file is, and use THAT path to load subsequent DLLs and helper files.
This way the working directory can be a true "user work" directory as no
program files have to necessarily be there! It also means adding the
prog. dir. to the LIBPATH and PATHs are not necessary!
Ah well. These two lines of code (compressed to one) have saved a bunch
of trouble with my REXX routines I like to use everywhere.!