ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: File/Folder Deleter Based on Text File

(1/5) > >>

dojima:
I've been looking for a program that can do this for a few hours with no luck.  I would think it's something that's very easy to do, but then again, I'm not a programmer.

As the subject states, I'm wondering if it's possible to create a program that will delete files and folders based on a text file with their full paths given, delimited by line breaks.  For example, a txt file with the following,

c:\folder to be deleted
e:\folder\file to be deleted.jpg

would delete those two items when chosen by the program.  Perhaps a good way to handle this is to be able to open or drag the txt file to the program window and have it show the list of items to be deleted before clicking a button to carry out the action.  Alternatively, pasting the list directly from the clipboard might be useful.  By deletion, I simply mean the action of moving the files/folders listed to the recycle bin.

Upon completion of the recycling task, I envision a status window popping up that says something like, "x files deleted and y files skipped." in the event that certain files on the list were either in use or simply do not exist.  Altering the original list of items from black to green or red based on recycled or skipped status respectively might be a good way to show this visually, though I don't know how overly difficult I may be making the coding of the program by requesting this.  Additionally, it might be useful to have the option of specifying other delimiters such as colons, vertical bars, etc.

Thanks.

skwire:
I can do this one.

skwire:
As the subject states, I'm wondering if it's possible to create a program that will delete files and folders based on a text file with their full paths given, delimited by line breaks.-dojima (October 02, 2009, 06:49 AM)
--- End quote ---

Yes, easily done.

Perhaps a good way to handle this is to be able to open or drag the txt file to the program window-dojima (October 02, 2009, 06:49 AM)
--- End quote ---

Almost all of my apps offer several ways when dealing with this type of functionality.  1) File menu 2) Toolbar buttons 3) Drag & drop

and have it show the list of items to be deleted before clicking a button to carry out the action. -dojima (October 02, 2009, 06:49 AM)
--- End quote ---

Correct, this will be a listview-centric app.

Alternatively, pasting the list directly from the clipboard might be useful.-dojima (October 02, 2009, 06:49 AM)
--- End quote ---

Can do.

By deletion, I simply mean the action of moving the files/folders listed to the recycle bin.-dojima (October 02, 2009, 06:49 AM)
--- End quote ---

Deleting to the bin is doable.

Upon completion of the recycling task, I envision a status window popping up that says something like, "x files deleted and y files skipped." in the event that certain files on the list were either in use or simply do not exist.-dojima (October 02, 2009, 06:49 AM)
--- End quote ---

How about displaying this information in the app's statusbar?

Altering the original list of items from black to green or red based on recycled or skipped status respectively might be a good way to show this visually, though I don't know how overly difficult I may be making the coding of the program by requesting this.-dojima (October 02, 2009, 06:49 AM)
--- End quote ---

I was thinking of using coloured icons in the first column to show the status of a certain line.  Logic would be something like this:

On file/folder load action:

Grey icon - File or folder is present.
Yellow icon - File or folder is missing.

On file/folder delete action:

Green icon - Deletion was successful.
Red icon - Deletion was unsuccessful.

Additionally, it might be useful to have the option of specifying other delimiters such as colons, vertical bars, etc.-dojima (October 02, 2009, 06:49 AM)
--- End quote ---

Can do but this will come last.

Your thoughts?

dojima:
Sounds perfect.  Additional delimiters wouldn't be useful for me at all; I just threw that in on the off chance it might be useful to others who could use a program like this.

Thanks a bunch.

skwire:
Cool.  I wanted to make sure that using coloured icons versus coloured text was okay.  I can do either, but I prefer icons.  I've got some shopping to do with my wife so I'll get started on this a bit later.

Navigation

[0] Message Index

[#] Next page

Go to full version