| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: ATTRIB Does Not Work !!! |
Don{ald} O. Woodall wrote:
>In , on 10/07/2004
> at 05:45 PM, Andy Willis said:
>
>Andy
>
>
>
>>I thought it would get rid of the directory read only attributes but
>>Kris's message here got me interested so I tested it and he is correct.
>>Apparently my script to delete directories works because the readonly on
>>a directory doesn't stop it from getting removed. Here is the short
>>script to get rid of the files readonly attribute though.
>>
>>
>
>
>
>>/* Remove readonly attribute recursively */
>>/* Define Rexx Functions */
>>call RxFuncAdd 'SysFileTree', 'RexxUtil', 'SysFileTree'
>>call SysFileTree Arg(1)'\*.*', 'file', 'BSO', '***+*', '***-*' /*
>>removes readonly bit */
>>exit
>>
>>
>
> Now, that is something that doesn't blow my mind when
>I look at it and am willing to play with
>
> Thanks
>
>
>
If it is in a directory you want to run it from just run it as (in my
case I named it ro.cmd) "ro ." without the quotes. This removes even
the RO on the directories below the one you are in. I initially tested
it as "ro doh" (where doh was the directory I had created) and it
removed them all on everything except the directory "doh" itself.
The initial script I sent I have used for several years to delete entire
directory trees. It does a wonderful job, it only asks once if you are
sure you want to do it and a single press of 'y' makes it all disappear
('n' will close without doing it, any other input waits for one of the
other 2).
Andy.
Andy
--
Warpstock 2004, Denver, Colorado, October 21 - 24, 2004
http://www.warpstock.org Volunteers: please send note to
wsv2004{at}comcast.net
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/E8folB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/os2user/
To unsubscribe from this group, send an email to:
os2user-unsubscribe{at}yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
---
* Origin: Waldo's Place USA Internet Gateway (1:3634/1000)SEEN-BY: 633/267 270 @PATH: 3634/1000 12 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.