Tech Support Forum banner
Status
Not open for further replies.
1 - 1 of 1 Posts

·
Registered
Joined
·
140 Posts
Discussion Starter · #1 ·
Hi,

I am using Windows XP Home Edition and I am writing a program that will delete index.dat files. I keep getting various and random error messages when I try to delete a dat file. How can I accomplish this in Java, especially without restarting the machine?

I try something like:

String path = "c:\\documents and settings\\user\\cookies\\index.dat";
File f = new File(path);
f.delete();
 
1 - 1 of 1 Posts
Status
Not open for further replies.
Top