Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setting file attribute  RSS feed

 
satya sahu
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
I am copying one file from cd to HDD using Java program in Linux OS. But i am not able to set an execute permission to the file. If u want to give execute permission,we have to type chmod 777 file name. But i want to do it using a java program. Please help me. It is very urgent.
Thanking all.
 
Eugene Ho
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at java.io.FilePermission
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!