Page 1 of 1

lib functions, available from anywhere without calling..

Posted: 21 Nov 2011 20:25
by Ed Dyreen
:idea:
woody wrote:You could build an entire library of functions as environment variables, available from anywhere without calling an intermediate library batch file.

I must admit, that is a brilliant idea, Ed.
Well actually, it's your idea. My library is loaded only when needed.
But now you mention it:
The global environment variables in DOS are nothing more then a bunch of reg keys, loaded when DOS is initialized.
In theory you could build a DOS library as a .reg file and inject it.
I am afraid the linefeed and carriage return won't be an option, but other special characters can be escaped with '\'

It's a very good idea, I'm gonna play with it a little, soon.. ...

This could be interesting, maybe we can use crlf in a reg file.
I currently don't have the time to investigate all this, thought it could be useful...

The CD Forum > CRLF characters in registry data
http://911cd.net/forums/lofiversion/ind ... 16256.html

Re: lib functions, available from anywhere without calling..

Posted: 21 Nov 2011 21:27
by dbenham
Interesting idea, though I will probably stick with loading the macros as needed within the command session.

Dave Benham