Use exec to call Attrib. The available attributes are hidden (h), readonly
(r), system (s), archive (a). Anyway to set the flag state "attrib +r
filename". to remove "attrib -r filename". to see all current flags "attrib"

Tim

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 4:53 AM
To: Ant Users List
Subject: Re: file permission rights under Windows


thanks stefan,
I will have a look in the archives.
and no theres no reason why I cant use exec. but I didnt know that there is
a
chance to do this with exec.

Quoting Stefan Bodewig <[EMAIL PROTECTED]>:

> On Thu, 06 Dec 2001, detlef brendle <[EMAIL PROTECTED]> wrote:
>
> > how can I change the permissions of a Windows file ?
>
> There is no built-in task to do that, but people have sent custom
> tasks to ant-dev, you may find one in the archives.
>
> I've been told that there is an executable named attrib that can be
> used to change the read-only flag (I really have no idea, sorry 8-).
> Any reason you cannot use <exec> to invoke this?
>
> Stefan
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to