Hi buddies,
I m trying to rename the existing .jar file.But I can't.
If I make a copy of this and run the copied exe,by that time it works.
Code as follows,
boolean ReNameExistingEXE(String Dest)
{
String temp = Dest + "\\Star.jar";
File s = new File(temp);
String exName = Dest+"\\"+"Old "+s.getName();
File s1 = new File(exName);
boolean st = s.renameTo(s1);
return st;
}
pls help to make this work.