🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.netware.misc
2 messages
2 total messages Started by A. Grant Fri, 18 Aug 1995 00:00
How to delete a directory quickly?
#598
Author: A. Grant
Date: Fri, 18 Aug 1995 00:00
14 lines
1177 bytes
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?
Re: How to delete a directory quickly?
#597
Author: Terrence Ng
Date: Wed, 23 Aug 1995 00:00
30 lines
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
----------------------------------------------------------------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads