To reproduce:
- create a new directory ('FOLDER')
- mark FOLDER read only via its Settings notebook
- a DIR /AR from its parent directory will correctly show FOLDER
- an ATTRIB F* will not show the directory (ATTRIB * doesn't show any
directories, actually, which makes me think it intentionally ignores them)
- ATTRIB -R FOLDER does nothing
- Manually removing the read only marking via Settings is the only way to
delete the directory
So why is this hard? When copying CD-ROMs to a hard disk, all files
and directories are marked R-O. A simple 'ATTRIB -R * /S' wil unmark all
files, but you cannot delete the directories. It seems the only way to do this
reasonably quickly is by using File Manager, which prompts for each R-O
directory, but allows them to be deleted anyway.
Shouldn't there be a way to do this with OS/2?
Thanks,
Steve
i> - Manually removing the read only marking via Settings is the only way to
i> delete the directory
i> Shouldn't there be a way to do this with OS/2?
RW.CMD
------
/* Remove R/O attributes from directory tree */
arg dir
call RxFuncAdd 'SysFileTree', 'RexxUtil', 'SysFileTree'
call SysFileTree dir, 'file', 'D', '***+*', '***-*'
call SysFileTree dir'\*', 'file', 'S', '***+*', '***-*'
usch
--
: us...@viking.ruhr.com : 75472...@compuserve.com :
: http://www.ruhr.de/home/squonk :
: "Every feature is a bug unless it can be turned off" :
There are DOS third-party ATTRIB replacements which CAN manipulate
directory attributes. You could use one of these to batch set the
directories. Also, most shell replacements like 4OS2 or YAOS2 include
attribute setting capabilities for directories.
---------------------------------------------------------------------
Doug Darrow <dsda...@terminus.com> The Second Foundation - Lompoc,CA
---------------------------------------------------------------------
If you want to delete a directory which was copied from a CDROM, try this...
Create a new folder, drag the R-O folder into it. Drag the whole lot into the
shredder - it'll ask you are you sure? say yes to all...
It'll also report that object such'n'such is R-O and want's to confirm deletion
select yes to all again...
Zap - directory and contents gone.
Regards
Antony.
http://nuts.ml.org/ My Warped Server uses IBM ICS for OS/2!!!
ftp://nuts.ml.org:6666 My Warped Mind uses OS/2 for all multitasking :)
OS/2 Files and "stuff" Your choice: 32bit OS/2 or 16bit Win95.........
Arto
--
Team OS/2