Re: Help recursively setting readonly attribute
Bob Archer <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <[email protected]> |
Ah got it... the include patterns are a bit tricky. From: Chris Fouts [mailto:[email protected]] Sent: Thursday, May 05, 2011 10:11 AM To: [email protected] Subject: Re: [NAnt-users] Help recursively setting readonly attribute I did NOT want the files to be read only, hence "false." I should've said "I wanted to set the read only attribute to false." -chris From: Bob Archer [mailto:[email protected]] Sent: Thursday, May 05, 2011 9:59 AM To: Chris Fouts; [email protected] Subject: RE: Help recursively setting readonly attribute If you want to set the read only attribute, wouldn't you set readonly="true" ??? BOb From: Chris Fouts [mailto:[email protected]] Sent: Wednesday, May 04, 2011 6:01 PM To: [email protected] Subject: [NAnt-users] Help recursively setting readonly attribute I thought I had this, but apparently not, since I can't overwrite files in them. I run as Administrator so I have permission to do this. I want to set the read-only attribute for all files and subdirs under the two directories <target name="removeReadOnly" description="Remove read-only attribute of files"> <attrib readonly="false"> <fileset> <include name="C:\Some Folder\**\*" /> <include name="C:\Other Folder\**\*" /> </fileset> </attrib> </target> What am I missing? -chris ***This e-mail message is intended only for the above named recipient(s) and may contain information that is sensitive or proprietary. If you have received this message in error or are not the named recipient(s), please immediately notify the sender, delete this e-mail message without making a copy and do not disclose or relay this e-mail message to anyone.*** ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ NAnt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users