Is there any way in java by which we can disable renaming a specific file( for eg. MS-Excel file)just as we can hide it.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Disabling renaming of files would be something that the operating system/file system would have to enforce. It’s not something that a Java application would have the honor/privilege of doing.
Also, I’m not sure what you mean by "just as we can hide it". Currently, Java can NOT hide a file (see: bug# 4267530).