on 07-19-2007 9:39 AM
hi..can anyone please tell me how to delete all the .lck files that are created automatically during log generation?
> hi..can anyone please tell me how to delete all the
> .lck files that are created automatically during log
> generation?
You mean using Java? How about this:
File dir = new File("/replace/with/correct/path");
File[] lckFiles = dir.listFiles(new FilenameFilter() {
public boolean accept(File dir, String name) {
return name != null && name.endsWith(".lck");
}
});
for (File lckFile : lckFiles) {
lckFile.delete();
}
Regards,
Jens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
del *.lck Or what do you mean?!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.