ATTRDIR - modify attributes of directories under OS/2 Copyright (c) 1995, Klaus Joosz All rights reserved. This program is free software. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. ------------------------------------------------------------------------------- ATTRDIR is a command line tool to modify the attributes of directories under OS/2. ATTRDIR sets, removes or displays the attributes READ ONLY, SYSTEM, HIDDEN and ARCHIVE. Usage: ATTRDIR [+R | -R][+S | -S][+H | -H][+A | -A] [DRIVE:][PATH]DIRECTORY ATTRDIR does not support wildcard characters. Attributes can only be modified for one directory at a time. It seems that OS/2 does not care about the READ ONLY attribute on local drives, so whether or not this attribute is set an empty subdirectory can be deleted with the RD command. There is an enhanced DEL command for OS/2. Its name is XDEL and it should be part of the same package that contains ATTRDIR. XDEL supports the READ ONLY attribute of subdirectories. For example you can tell XDEL not to delete files in a subdirectory if its READ ONLY attribute is set. To delete a subdirectory with the READ ONLY attribute set you must pass a special command line option to XDEL. Klaus Joosz August 22, 1997