Afternoon all,

>> how about a commandline tool which can automatically delete a whole
>> directotry tree with all files in it? :-)
Go to Dilwyn's website and download the source code for Winback. (A hard
disc backup tool "wot I wrote"!)

In there is a utility called something like "build_directory_tree_bas" -
but don't quote me.

In that utility, there is a recursive Superbasic routine to walk a
directory tree and add the directory name(s) to a list of data
statements in a program (that the utility generates) to rebuild the full
directory tree before doing a restore.

I'm certain that the code in that recursive routine coun be easily
modified to delete all the non-directory files and then the directory.

If you find that too easy, re-write it in assembler!


:-)


Cheers,
Norman.

-- 
Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
Thorpe House
61 Richardshaw Lane
Pudsey
West Yorkshire
United Kingdom
LS28 7EL

Company Number: 05132767
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to