Posts: 5,793
Threads: 268
Joined: Sep 2010
Reputation:
85
01-15-2012, 12:39 AM
(This post was last modified: 01-15-2012, 12:40 AM by AceInfinity.)
Update: I just watched this application loop through about 800 files with short filenames and correct their casing in about 2-3 seconds lol. There's the limitation of how many files it can scan through, but that also depends on their filepaths, I would recommend placing this executable in the same directory when correcting the case of filenames, and I would suggest that it's as close to the main drive of where ever you're scanning that you can get (C:\ most probably). The farther you go out, the longer the filepath gets, and that limits the number of files you can scan because the filepath to the directory of where those files exist becomes longer in length. For best an insane number of files, I would probably create a directory in my C:\ drive and place all the files that I wanted to scan in there, select them all, and drag over top of the executable i've coded. Most people probably won't scan over 100 files though, and i've seen this application handle around 200-250 files no problem in locations that are common for me on my computer.
Posts: 101
Threads: 1
Joined: Dec 2011
Reputation:
2
This is really impressive. I just downloaded it and tested it on a whole folder of mine, worked perfectly.
Posts: 5,793
Threads: 268
Joined: Sep 2010
Reputation:
85
01-15-2012, 01:01 AM
(This post was last modified: 01-15-2012, 01:06 AM by AceInfinity.)
I was contemplating letting it check for things like "-" (dashes) and if found no space on the index of the char before and after it, to add that space in there, and update the char after the dash with an uppercase, but some people may not have wanted that. So it utilizes spaces only, and changes the first letter of the file itself to uppercase with everything else lowercase.
It's good though if you like your files nice and tidy to a named standard. For example, any regular sized music folders you have where you have say some files that are all lowercase, some the standard proper case, and some odd ones all caps. This will standardize that files list for you.
I made sure to free up memory after every loop through as well which makes it a bit faster execution time as well. If you wanted, you can compress this down a few more bytes with UPX as well if you wanted. Tested UPX compression on my application and it's down to 98.5Kb, which is pretty small. But the file itself from the download should be only slightly higher, not much difference here as the original was 104Kb.
NOTE: If you don't see the changes when trying to rename a big number of files, right click on an empty space in the folder where the files you wanted to rename exist, AFTER using the application and use the right click option for "Refresh" or the shortcut for Refreshing the explorer view which should be F5. For some reason the explorer view does not refresh, and it may look like the files are NOT renamed, however they are. The changes just haven't been updated by refreshing the explorer view yet.
Posts: 53
Threads: 1
Joined: May 2011
Reputation:
0
Wow , you coded that alone ?
Good job man , downloading this now.
Posts: 5,793
Threads: 268
Joined: Sep 2010
Reputation:
85
Note: I just realized that my program seems to also work with folders because it's still part of the filepath. It won't change the casing of the files within the folder if a folder is dragged over though, just the folder itself gets renamed.
Posts: 5,793
Threads: 268
Joined: Sep 2010
Reputation:
85
Updated with a new video demonstrating it's ability to rename folders as well in my version:
[yt]http://www.youtube.com/watch?v=Y1smKZ8SUic&fmt=100[/yt]