[comp.sys.ibm.pc] 4DOS Path Utilities

kwong@polyslo.CalPoly.EDU (Ka Chin Wong) (03/24/90)

Instead of using the path utilities, someone suggested the following

> setlocal
> set path=temp_pathname;%path%
> run_program_here
> endlocal

This is indeed a very good idea.

I immediately change all my bat files accordingly.
But then I found out I have 1.5k less conventional memory
when I run these batch files.  I guess the reason is that
4DOS makes a snapshot of the current envoirnment called
"data" and stores it in main memory.  It does not swap it
to my UMB or EMS memory.

In my case, all I want is the modifiy the path.  I don't
need to preserve any other information like history or
aliases.  As long as I am still running MSDOS, this little
1.5k memory is GOLD to me.  Thanks for the suggestion though.

Following is a respond to the person
who said I was hacking the 4DOS envoirnment
----------------------------------------------
Take this in quote "I do NOT hack, I program."

The interrupt I used for the path utilities are well documented
by 4DOS near the end of the command reference.  I followed the
guide line to write my programs.  If you consider this hacking,
then 4DOS is definitely a hacker's product.

Please give some credit to the programmers.


Rick Wong
Computer Science
California Polytechnic State University