topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 11:03 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: DONE: File/Folder Deleter Based on Text File  (Read 23425 times)

dojima

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
DONE: File/Folder Deleter Based on Text File
« on: October 02, 2009, 06:49 AM »
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.
« Last Edit: October 02, 2009, 06:52 AM by dojima »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #1 on: October 02, 2009, 07:39 AM »
I can do this one.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #2 on: October 02, 2009, 08:25 AM »
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.

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

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.

Correct, this will be a listview-centric app.

Alternatively, pasting the list directly from the clipboard might be useful.

Can do.

By deletion, I simply mean the action of moving the files/folders listed to the recycle bin.

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.

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.

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.

Can do but this will come last.

Your thoughts?

dojima

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #3 on: October 02, 2009, 08:49 AM »
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

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #4 on: October 02, 2009, 09:06 AM »
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.

dojima

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #5 on: October 02, 2009, 09:25 AM »
Yeah, the icons would probably be more visible.  Thanks again.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #6 on: October 02, 2009, 02:50 PM »
Almost done and need an app name.  I have Deletext as the working name but, as always, am open to suggestion.  Cranioscopical?!?!  Pressure's on, guv.   :D

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #7 on: October 02, 2009, 03:08 PM »
I think DeleText is spot on!
An alternative might be Deletist.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #8 on: October 02, 2009, 03:10 PM »
I like Deletist.  Thanks.  =] Now to choose an icon, tidy up some loose ends and this puppy is ready for release.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #9 on: October 02, 2009, 04:52 PM »
Give this a try:  Deletist v1.0.0

Website | Download

main.pngDONE:  File/Folder Deleter Based on Text File

dojima

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #10 on: October 02, 2009, 06:48 PM »
hahah, that's too awesome.  Makes me wish I could program.  Seems to work perfectly.  I do have two questions, though.  Is the list limited to a certain number of items?  Also, I don't seem to be able to paste a list of items in there.  I'm not sure if I might just be doing something wrong or it hasn't been implemented.

Thanks again.  Amazing work.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #11 on: October 02, 2009, 06:51 PM »
Is the list limited to a certain number of items?

No limit.

Also, I don't seem to be able to paste a list of items in there.  I'm not sure if I might just be doing something wrong or it hasn't been implemented.

Ah, crap.  I forgot.  Give me a few minutes.

Thanks again.  Amazing work.

You're welcome.  Glad to help.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #12 on: October 02, 2009, 07:05 PM »
v1.0.1 - 2009-10-02
    + Added ability to paste in paths from clipboard via the Edit menu or via Ctrl+V.  (Thanks, dojima)

Website | Download

Sorry about that.
« Last Edit: October 02, 2009, 07:07 PM by skwire »

dojima

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #13 on: October 02, 2009, 07:21 PM »
Flawless.  Thanks.  Anywhere I can donate?

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #14 on: October 02, 2009, 10:23 PM »
v1.0.2 - 2009-10-02
    ! Removed tray icon that was erroneously left in.

Website | Download

dojima

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #15 on: October 03, 2009, 01:59 AM »
haha, yeah I was wondering what those options were when I right-clicked it.

paarkhi

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #16 on: October 03, 2009, 06:42 AM »
Thanks Sir, you are back with again with one more nice code.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #17 on: October 03, 2009, 08:26 AM »
Thanks, paarkhi.   :)

v1.0.3 - 2009-10-03
    + Added a 'Remove "missing" rows' button on the toolbar.  This will remove any rows from the list that report as "File/folder missing."

Website | Download

main.pngDONE:  File/Folder Deleter Based on Text File

sajman99

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 664
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #18 on: August 04, 2010, 07:04 PM »
Deletist is mentioned today at ghacks.net so I had to come check it out.  http://www.ghacks.ne...e-folders-and-files/

Looks like a useful cleanup tool--thanks skwire for the cool app. 8)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: File/Folder Deleter Based on Text File
« Reply #19 on: August 04, 2010, 11:54 PM »
You're welcome.  Happy to help.   :D

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: DONE: File/Folder Deleter Based on Text File
« Reply #20 on: May 30, 2016, 07:53 AM »
Mentioned on ILoveFreeSoftware today:
http://www.ilovefree...ing-a-text-file.html