String filePath = "C:Usersd654227/Desktop/abdc.url"; // Actually its getting constructed dynamically.
File file = new File(filePath);
if(file.exists()){
LogUtil.logConsole(filePath+" File already exist.");
file.delete();
}else
{
LogUtil.logConsole(filePath+" File doesnt exist.");
}
Using Windows 7 n IE 9.
Its is getting executed through an applet. Same code works in our dev enviroinment and most of the customer places except one customer.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…