🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #804

4Eh Find First File - 4Fh Find Next File

#804
From: Phil Howard
Date: Thu, 16 Apr 1992 19:54
24 lines
1370 bytes
I would like to know exactly what the:
    4Eh Find First File
    4Fh Find Next File
MS-DOS function calls provide.  The FILEINFO structure only has room for a
single file name component.

If I use a file name (pointed to be ds:dx) such as:

    c:\dir1\dir2\dir3\file.ext

what do I get back in the fiFileName field of FILEINFO?  The last component
of the path (e.g. "file.ext")?

What if "file.ext" is really a directory (and I do NOT append "\*.*")?

What if the file name specified by ds:dx is "c:" or "c:\" ?

I am trying to make a simplified function for getting recursive file and
directory names given one or more pathnames.  By simplified, it is one
that is just called repeatedly and it takes care of all the details of
recursion (which the MS-DOS functions do not).  Each time it is called
it returns the next full path name even if it is in a different directory.
But the exact defined behaviour of 4Eh and 4Fh with regard to certain kinds
of paths that can be specified is not clear.
Technical Details
Message-ID: <1992Apr16.195437.18025@ux1.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!m.cs.uiuc.edu!ux1.cso.uiuc.edu!phil

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!m.cs.uiuc.edu!ux1.cso.uiuc.edu!phil
From: phil@ux1.cso.uiuc.edu (Phil Howard)
Subject: 4Eh Find First File - 4Fh Find Next File
Message-ID: <1992Apr16.195437.18025@ux1.cso.uiuc.edu>
Organization: University of Illinois at Urbana
Date: Thu, 16 Apr 1992 19:54:37 GMT
Lines: 24