Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Deleting a file once it is closed

807601Apr 14 2008 — edited Apr 14 2008
Runtime.getRuntime().exec("C:/WINDOWS/ServicePackFiles/i386/notepad.exe C:\\CheckDemo.txt");

It will open a CheckDemo.txt file which is already there in the C:\\ Drive.
I want it to be deleted immediately after I close that file.

Any help would be appreciated.

Regards,
Snehanshu
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 12 2008
Added on Apr 14 2008
4 comments
157 views