Xref: utzoo comp.sys.ibm.pc.misc:10245 alt.msdos.programmer:2784 comp.os.msdos.misc:2411 Path: utzoo!utgpu!cs.utexas.edu!swrinde!mips!spool.mu.edu!munnari.oz.au!metro!usage.csd.unsw.oz.au!abccomp!peter From: peter@atlas.abccomp.oz.au (Peter Barker) Newsgroups: comp.sys.ibm.pc.misc,alt.msdos.programmer,comp.os.msdos.misc Subject: Re: Wanted: Recursive File Deletion Capability Keywords: recursive delete file executable binary Message-ID: <1991Jun11.012545.21510@atlas.abccomp.oz.au> Date: 11 Jun 91 01:25:45 GMT References: <1991Jun5.203434.8397@hubcap.clemson.edu> Organization: TurboSoft P/L, Sydney Lines: 15 In article <1991Jun5.203434.8397@hubcap.clemson.edu> tjmurr@hubcap.clemson.edu (Tom Murray) writes: > >I need a DOS executable that will recursively delete the contents of a >directory, its subdirectories and the directory itself (you may recognize >this as the function of the Unix 'rm -r' command.) Write a small assembler program (or use in-line assembler in C) to call DOS INT 21h, fn 3Ah (remove subdirectory) with the carry flag set. I believe this will have the effect you want. (undocumented DOS). -- Peter Barker | Internet peter@atlas.abccomp.oz.au TurboSoft Pty Ltd | JANET peter%atlas.abccomp.oz.au@uk.ac.ukc 248 Johnston St, Annandale | UUCP uunet!munnari!atlas.abccomp.oz!peter NSW 2038 Australia | Telephone +(612) 552 1266