lib functions, available from anywhere without calling..

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

lib functions, available from anywhere without calling..

#1 Post by Ed Dyreen » 21 Nov 2011 20:25

: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
Last edited by Ed Dyreen on 21 Nov 2011 21:48, edited 1 time in total.

dbenham
Expert
Posts: 2461
Joined: 12 Feb 2011 21:02
Location: United States (east coast)

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

#2 Post by dbenham » 21 Nov 2011 21:27

Interesting idea, though I will probably stick with loading the macros as needed within the command session.

Dave Benham

Post Reply