setting file permisions ,group permission on Windows and unix from java
Hi i am trying to set up file permissions through java on unix and windows operation sysyem.I don't want to use shell scripts .thank you for your help.
[187 byte] By [
rpshekar] at [2007-9-30 4:24:06]

Java aims platform independency. The file permissions heavily depend on the file system (FAT, NTFS, the Unix ones etc.). So in the API there is very little support for file permissions. You will have resort to some native method.
HI BIJ001,
Thanks for reply.I am paling to use
1)First i am detecting operating system
2)if it is UNIX->calling unix scripts from JAVA
2)if it is WINDOWS ->calling Bat scripts.
But attrib command in windows does not support FIle Gropu permssion like unix(chmod 777 filename).
Do yoou have any experience in .bat sctipts on file permission.
Let me know .Again thank you for reply.