Hi guys,
I hv the same problem but am working on a workaround. Create a class , dump in the code to rename the file and run this class as a batch/ chrome soon after the log is created.. here´s what I hv done:
String path = "F:\\bea\\user_projects\\applications\\contents\\logs";
String newpath = "F:\\TMN\\junk\\";
String cmp = "WCM_export";
File file = new File(path);
File str[] = file.listFiles();
for(int i=0; i<str.length; i++){
if(str.isFile()){
// System.out.println(str.getName() + "--------" + str.getName().length());
String s = str.getName().substring(0,10);
if(s.equalsIgnoreCase(cmp)){
//File Newfile = new File(str.getAbsoluteFile()+".csv");
File Newfile = new File(newpath+str.getName()+".csv");
str.getAbsoluteFile().renameTo(Newfile);
}
}
}
hope this is usefull..