Article View: comp.os.netware.misc
Article #597Re: How to delete a directory quickly?
From: Terrence Ng
Date: Wed, 23 Aug 1995 00:00
Date: Wed, 23 Aug 1995 00:00
30 lines
1712 bytes
1712 bytes
Try using "Deltree" command found in DOS. I've try it and it works. In article <ag129.2260.000C33B2@cam.ac.uk>, ag129@cam.ac.uk (A. Grant) says: > >I am trying to delete a directory (that's the file type, not the >NDS type!) via the NetWare API. The 'delete directory' call won't >let me delete a directory that isn't empty. > >What am I doing at the moment is scanning for subdirectories, >deleting those recursively, then deleting the files in the directory, >which I can do in one go using wildcards -- except that it may fail >because some files are flagged non-deletable, then I have to scan >all the files individually and change their flags. > >Is there a better way? How can I get the tree deleted in a minimum >number of NCP interactions that doesn't involve all that network >traffic to scan the tree? Is there a way to handle the read-only >flags problem? ---------------------------------------------------------------- Terrence Ng | Tel : 65-359-5824 Tan Tock Seng Hospital | Fax : 65-256-0941 Singapore | Internet : terrence@ttsh.gov.sg ----------------------------------------------------------------
Technical Details
Message-ID:
<41e76m$l1v@alpha.ttsh.gov.sg>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<ag129.2260.000C33B2@cam.ac.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fe659,9e54e13477de5037 X-Google-Attributes: gidfe659,public X-Google-Thread: f8bf7,9e54e13477de5037 X-Google-Attributes: gidf8bf7,public From: terrence@ttsh.gov.sg (Terrence Ng) Subject: Re: How to delete a directory quickly? Date: 1995/08/23 Message-ID: <41e76m$l1v@alpha.ttsh.gov.sg> X-Deja-AN: 108642867 references: <ag129.2260.000C33B2@cam.ac.uk> organization: Tan Tock Seng Hospital newsgroups: comp.os.netware.misc,bit.listserv.novell