Quote from: sXwamp on 2011.06.25, 21:56:08Quote from: melf on 2011.06.25, 15:09:44
Hi ,
The deltree from 2003 by Carl Harding was updated by him from deldir by Marc Polly (I don't know who they are, just reading from the readme). It's rexx and I guess it's ok to update again? Sys nothing about licensing or so. But I may miss your point.
Ok, it was originally name DELDIR which I tried and it was later changed to DELTREE. Unfortunately,
it won't delete read-only files in either version.Code SelectSysFiletree(user_dir, dir_list, 'BO', '*****', '-----')
This code is not working. Does anyone know how to remove the read-only attrib for the entire tree, before deleting it ???
Thanks,
Greggory
I have a C program that does this but you are looking for a rexx routine.
To keep it simple, Once you have the filename list you could recursively use the atrib and del system calls for the files and rd for the directories.
This removes the attributes and deletes one file. Not Rexx but can can be modified.
@echo off
attrib -r -s -h %1
del %1