[comp.sys.ibm.pc] Novice programming question - removing hierarchies

6sigma2@polari.UUCP (Brian Matthews) (02/05/90)

I'm new to programming under MS-DOS, but I need to remove a directory
and all of its contents, recursively from within a program.  I'm using
Microsoft C 5.1.  Can someone provide some sample code to do this, or
point me some routines to use?

Thanx much.
-- 
Brian L. Matthews	blm@6sceng.UUCP

6sigma2@polari.UUCP (Brian Matthews) (02/06/90)

In article <1242@polari.UUCP> I write:
|I'm new to programming under MS-DOS, but I need to remove a directory
|and all of its contents, recursively from within a program.  I'm using
|Microsoft C 5.1.

I dug around some, and discovered that this is trivial using
_dos_findfirst and _dos_findnext.

-- 
Brian L. Matthews	blm@6sceng.UUCP