Deleting a File
Posted on 2006-11-02
An operation I'm calling is creating a logfile outside of my program. I am parsing that log file's information. Once parsed, the file is useless and I want to delete it automatically.
Currently, this is how I'm doing it:
String filedelete = "del c:\\progout.txt";
Process p = run.exec(filedelete);
But, the command prompt window pops up blank and just sits.
Any idea how to modify my command in String filedelete?