[comp.os.msdos.programmer] testing for a dir

ted@helios.ucsc.edu (Ted Cantrall) (08/18/90)

A while back, someone posted a hint the you could test for the presents
of a particular directory (EG "junk") using the syntax :
IF EXIST \JUNK\NUL GOTO xxxx
assuming that JUNK is off hte root dir.
THE PROBLEM:
This method works on our '286 and XT, but not on the '386. On the '386,
the "file" NUL is found even if the directory is not there.
Anyone know if this "nul" trick is BIOS dependant?
DOS versions: XT=3.00   '286=3.30   '386=3.30
Can someone help us??
			-ted-

-------------------------------------------------------------------------------
ted@helios.ucsc.edu         | "If I get any phone calls while I'm gone,
(408)459-2110               |    just don't answer them."
-------------------------------------------------------------------------------