Cynosure.X International LLC


Add Comment | Related Links | TrackBack
Related Content

Delete (Freeware)

Every operating system has a file deletion command. In DOS it's "del". In UNIX it's "rm". So why would you need a file delete utility written in Java?

Today, I found a file called "--ignore-failed-read" on my Linux box. It's taking up 76 MB of space. Quite bit for a file that I don't recall. And, of course, I couldn't delete it in the BASH command prompt. It was on a remote system that doesn't have X. And I couldn't figure out how to "rm" it within 10 minutes. If you tried it, you would have gotten the following error message:

rm: unrecognized option `--ignore-failed-read'
Try `rm --help' for more information.

I've already tried all permutation of *, ?, ", etc. I had no other ideas. Rather than spending another 10 minutes on figuring how to do it, I decided to spend 10 minutes writing this Java Delete utility. If you know how to do it, fill us in. If you came here trying to delete a nuisance file, download the Delete utility.

Delete is a command-line Java software that will delete files that you specify. Delete comes in handy when you have a file that is troublesome to delete. You don't have to remember string/pattern rules, because Delete doesn't take any arguments other than the file/path name. This software understands standard file specification masks, so you can execute it on a number of files at once. Because Delete is written as a command-line utility, it can be used in custom batch files and custom scripts.

Delete is written in Java, so it will run on any Java-supported operating system. Delete takes advantage of the CI Class Package 5.4 or newer. You will have to download the CI Class Package and install it if you don't have it already.

Delete is distributed as Freeware. Please see the "Freeware License Agreement" elsewhere on this site.


  Usage: java Delete "file 1" [ ... "file n" ]

Attached File: Delete.class (2 KB)

Chieh Cheng
Mon, 15 Jan 2007 19:05:07 -0800

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 5 + 9?
Click button only once, please!


TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

68 Users Online

Hacking Digital Cameras
Fun for Photographers

Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.