How to lock a folder
-
kindly help me how to lock a folder with java code
-
kindly help me how to lock a folder with java code
-
kindly help me how to lock a folder with java code
If you mean to lock a folder in such a way that nobody can gain access to the folder, then you need to look at JNI, since folder locking is handled by the operating system, and not by java explicitly. Think of it as setting up access rights to a folder F1 for person A, but not person B. So is B now attempts to open F1, a nice message and loud boom will announce that access is denied. This is done by the operating system. Have a look at JNI: Java Native Interface[^] Java Native Interface Tips[^] Java Native Interface: Programmer's Guide and Specification[^] Otherwise, if you meant "how to lock a file during editing", have a look at this: How can I lock a file using java (if possible)[^]
-
If you mean to lock a folder in such a way that nobody can gain access to the folder, then you need to look at JNI, since folder locking is handled by the operating system, and not by java explicitly. Think of it as setting up access rights to a folder F1 for person A, but not person B. So is B now attempts to open F1, a nice message and loud boom will announce that access is denied. This is done by the operating system. Have a look at JNI: Java Native Interface[^] Java Native Interface Tips[^] Java Native Interface: Programmer's Guide and Specification[^] Otherwise, if you meant "how to lock a file during editing", have a look at this: How can I lock a file using java (if possible)[^]