Thanxs i hate it when i miss things like that.
i get no error now it just doesn't work it keeps returning false.
this is my code
String absDIR= "inet/docroot/dabrey/Newsclippings/upload/.";
String absDIR= "inet/docroot/dabrey/Newsclippings/clippings/";
File path = new File(dirURL);
String[] list = path.list();
for(int i = 0; i < list.length; i++) {
String pdfName = list[list.length - 1 - i];
String year = pdfName.substring(0,2) + "/";
String mon = pdfName.substring(3,5) + "/";
String day = pdfName.substring(6,8);
File old = new File(pdfDirURL + pdfName);
File moved = new File(absDIR + year + mon + pdfName);
out.println(moved);
try{
boolean flag = false;
flag = old.renameTo(moved);
out.println(flag);
}
catch(Exception e) {
System.out.println(e);
}
}
Any Clue??
Tex