DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: DONE: Sort files into folders based on type  (Read 55,610 times)

wreckedcarzz

  • Still lurking. Still an anthro.
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,629
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Furry Fandom Badge - Furry Fandom
    • Linux User
DONE: Sort files into folders based on type
« on: April 09, 2009, 01:36 AM »
I did a little bit of searching and surprisingly didn't find anything to do this (except for music-related circumstances), so here goes...

I have a Downloads folder on my home server machine that is past 7GB and climbing (yes, I actually DO clean it out :P). I need a program that I can run that sorts the files into various folders based on their types (or file extensions, it doesn't matter one way or the other to me). It would need to be able to identify and place all of these file types into folders:

  • Folders (thereby making a folder of folders, but if the folder of folders already exists, don't put THAT folder into a new folder... :huh: :P)
  • EXE
  • MP3
  • MP4/FLV
  • ZIP/RAR/7z/JAR
  • ICO
  • PNG/JPG/GIF
  • INI
  • PDF
  • and more, preferably in a (user stupid) editable format

In addition, INI files that have an EXE counterpart with the same name should both be placed in a folder with that name (for coding snacks and whatnot).

Anyone able to take this?
« Last Edit: April 09, 2009, 03:20 AM by wreckedcarzz »

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: DONE: Sort files into folders based on type
« Reply #1 on: April 09, 2009, 02:09 AM »
Skrommel's MoveOut might work for you.

wreckedcarzz

  • Still lurking. Still an anthro.
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,629
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: DONE: Sort files into folders based on type
« Reply #2 on: April 09, 2009, 04:11 AM »
Skrommel's MoveOut might work for you.

Not exactly, but pretty darn close. Had forgotten about that little app :-[ Thanks

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: DONE: Sort files into folders based on type
« Reply #3 on: April 09, 2009, 04:32 AM »
maybe tchikien's Dekstop Teleporter and/or lifehacker's Belvedere may offer some options.

Note: Dekstop Teleporter link is down atm.. :-\

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
Re: DONE: Sort files into folders based on type
« Reply #4 on: April 09, 2009, 04:44 AM »

wr975

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • Coding Snacks
Re: DONE: Sort files into folders based on type
« Reply #5 on: April 09, 2009, 02:24 PM »
Reading your request I thought, I could use this application myself. Being a bit bored at work, I gave it a try.

>un that sorts the files into various folders based on their types
>It would need to be able to identify and place all of these file types into folders:
Done

>Folders (thereby making a folder of folders
Done (but I'm not sure if that's what you want)

>preferably in a (user stupid) editable format
I tried (see the ini file)

>INI files that have an EXE counterpart
Done (good idea, btw)


Please test it with few files until you trust it enough to let it on your 7 GB file archive.


See attachment for compiled Authotkey script + source code.


Edit: Here's a screen video: http://www.screentoaster.com/watch/stUE5VSk1IR1pWQlVUX1NbU1dc

Edit: Updated attachment (rev2) (found a tiny bug which didn't affect my work pc, but home pc... strange)

Edit: Updated attachment (rev3). Just noticed it moved existing folders in existing folders...  :-[ blame it on AHK's documentation or me, for not testing it.  :-\

Edit: Updated (rev4). Feature request.
« Last Edit: April 11, 2009, 03:08 PM by wr975 »

wreckedcarzz

  • Still lurking. Still an anthro.
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,629
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: DONE: Sort files into folders based on type
« Reply #6 on: April 10, 2009, 12:00 AM »
Awesome! I'm downloading it now and will give it a go over the next couple days as I continue downloading and see how it fairs. :)

wr975

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • Coding Snacks
Re: DONE: Sort files into folders based on type
« Reply #7 on: April 10, 2009, 08:09 AM »
I hope it works for you. ;) Please be sure to use the new version I just uploaded.

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 11,205
    • Participated in NANY Challenge Fourteen Times
    • Coding Snacks
    • Writer
    • Hardware Hacker
Re: DONE: Sort files into folders based on type
« Reply #8 on: April 10, 2009, 02:45 PM »
Robobasket.  I purchased it on BDJ for 9.95.  I haven't really used it yet, but maybe it will help you.  Normal price is 19.95.

http://www.bitsdujour.com/software/robobasket/

wreckedcarzz

  • Still lurking. Still an anthro.
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,629
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: DONE: Sort files into folders based on type
« Reply #9 on: April 10, 2009, 11:38 PM »
I hope it works for you. ;) Please be sure to use the new version I just uploaded.

Ah, I have yet to try it out, but am updating now :)

Robobasket.  I purchased it on BDJ for 9.95.  I haven't really used it yet, but maybe it will help you.  Normal price is 19.95.

http://www.bitsdujour.com/software/robobasket/

I'll check that out now :Thmbsup:

EDIT: @wr975 Good looking app, testing it now, but why is direct input disabled for the two textboxes to specify the folders? :'( I changed the option myself (glad I know AHK) but it is worth mentioning that Windows takes FOREVER to open the Network computer list, so allowing direct input would be something I would allow by default.

EDIT 2: After some failed testing, I disabled the Folders sub and it works great now (I guess it was trying to move the folders that MoveOut already had for me (exclude list might help?), so 6.5GB or so of processing isn't AHK's forte). One request: when it moves the EXE+other extension files to Apps, can it make a folder inside of
Apps with the same name of the programs so that it doesn't become a mish-mash of Program/INI/Program/INI/Program/ICO... etc?

Example:

Quote
Downloads folder before any action:
MySuperProg.exe
MySuperProg.ini
MySuperProg.ico

Current setup:
Apps\MySuperProg.exe
Apps\MySuperProg.ini
Apps\MySuperProg.ico

Theoretic setup:
Apps\MySuperProg\MySuperProg.exe
Apps\MySuperProg\MySuperProg.ini
Apps\MySuperProg\MySuperProg.ico

I would try it myself, but I haven't worked with AHK for anything beyond basic scripts for a couple of years now :-\
« Last Edit: April 11, 2009, 12:06 AM by wreckedcarzz »

wr975

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • Coding Snacks
Re: DONE: Sort files into folders based on type
« Reply #10 on: April 11, 2009, 03:16 PM »
Hi,

the input boxes are disabled, because I'm just lazy. Entering paths by hand would mean, I've to check if it's accessable, writeable, and so on...   ;) But what about this: Now you can drag&drop files or folders on the Inputboxes. Cool?  8)

Shame the folders did not work. I don't know what you mean with MoveOut. Never used this program.

The EXE+other extensions is now doing this (rev4):
If there's only one file (filename.exe) it'll be moved to "Apps"
If there're more files (filename.exe + filename.other_extensions)  they'll be moved to "Apps\filename".

Cheers,





« Last Edit: April 11, 2009, 03:28 PM by wr975 »

wreckedcarzz

  • Still lurking. Still an anthro.
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,629
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: DONE: Sort files into folders based on type
« Reply #11 on: April 11, 2009, 11:50 PM »
Drag and drop works - didn't think of that! :)

Basically on the folder thing: no fault of the program. I had made a set of folders to have MoveOut organize them to see how that worked, but then I switched to ILikeToMoveIt and what it was trying to (correctly) do, was move all those folders into the _folders directory.

Downloading now :Thmbsup:

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
Re: DONE: Sort files into folders based on type
« Reply #12 on: April 12, 2009, 02:48 PM »
ghacks.net wrote about ILikeToMoveIt. Read Sort Files Folders Automatically.

mrmandala

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 4
Re: DONE: Sort files into folders based on type
« Reply #13 on: May 25, 2009, 05:13 PM »
Reading your request I thought, I could use this application myself. Being a bit bored at work, I gave it a try.

Nice implementation, thanks.

wreckedcarzz

  • Still lurking. Still an anthro.
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,629
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: DONE: Sort files into folders based on type
« Reply #14 on: May 25, 2009, 07:28 PM »
Glad someone else got some use out of it as well, I thought it would be too specific. wr975 really did a great job with it- I have modified it slightly to run automatically and let Task Manager run it at midnight every day, and it works EXACTLY how I needed :) :Thmbsup:

EDIT: And ILikeToMoveIt is managing 13.6GB of data for me (and counting) - still running blazing fast every time :up:
« Last Edit: May 25, 2009, 07:32 PM by wreckedcarzz »

pyrohacker

  • Coder, gamer, loving it.
  • Member
  • Joined in 2008
  • **
  • Posts: 46
    • Participated in NANY Challenge Twice
    • Linux User
Re: DONE: Sort files into folders based on type
« Reply #15 on: January 05, 2010, 02:37 AM »
Huh.  I'm working on a similar app called SubDiv.  I started before I knew about this app, and I wanted to do a folder sorting app my way.  :-[

I hope nobody minds if I incorporate some of these ideas.
Funny that programmers chose the phrase "Hello, World" while most of us are introverts.
« Last Edit: January 05, 2010, 03:21 AM by pyrohacker »

wr975

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • Coding Snacks
Re: DONE: Sort files into folders based on type
« Reply #16 on: January 05, 2010, 08:48 AM »
No problem. It'd be nice to see this (with even more features) in a proper GUI. The AHK source is included.

chashnniel

  • Member
  • Joined in 2018
  • **
  • Posts: 127
Re: DONE: Sort files into folders based on type
« Reply #17 on: January 26, 2019, 12:44 PM »
tested on windows 10 1809 and works fine :Thmbsup:

Original address: https://www.donationcoder.com/forum/index.php?topic=17828.0