Article View: borland.public.jbuilder.java.api
Article #1939Re: Changing file permissions
From: Peter Parlewicz
Date: Fri, 13 Jul 2001 22:09
Date: Fri, 13 Jul 2001 22:09
23 lines
1615 bytes
1615 bytes
Thanks, that work-around worked. Too bad Java cannot do this natively. "John McGrath [TeamB]" wrote: > On Thu, 12 Jul 2001 14:38:09 -0400, Peter Parlewicz wrote: > > > I would like to set the 'executable' file attribute on an > > existing shell script file from a Java program.. > > How (if at all) can I do it? > > There is nothing in the Java runtimes that will do this for you, but it > would be pretty easy to use Runtime exec() to run a "chmod" command. > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3B4F719F.5FB8D200@queryobject.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3B4DEE91.C5056560@queryobject.com> <MPG.15b8ab226a535a7a98a358@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,e465846366fec29e X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-07-13 15:04:38 PST Message-ID: <3B4F719F.5FB8D200@queryobject.com> Date: Fri, 13 Jul 2001 18:09:35 -0400 From: Peter Parlewicz <pparlewicz@queryobject.com> X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api Subject: Re: Changing file permissions References: <3B4DEE91.C5056560@queryobject.com> <MPG.15b8ab226a535a7a98a358@forums.borland.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 206.98.171.152 X-Trace: dnews 995061757 206.98.171.152 (13 Jul 2001 15:02:37 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews