Support Forums

Full Version: [C++] UCase v1.0.2 Released! Useful Windows Explorer Utility (Coded by AceInfinity)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[yt]http://www.youtube.com/watch?v=cH6qo3Ntvn8&fmt=100[/yt]

Code:
UCase v1.0.2
Developed by AceInfinity

Description: Converts all input files to a Proper Case format

[Image: ibxlPKL2rpCDdC.png]

Changes the case of the letter to uppercase as long as it's the first letter of the file, and it's the first char after a space character. Otherwise, it ALSO changes all other letters over to lowercase. So if you had a file named:

"FILE 2.txt" it would rename that over to "File 2.txt".

More Information & Download Here: http://tech.reboot.pro/showthread.php?tid=1565

Virus Scan:
https://www.virustotal.com/file/8b1f82c5...326602774/
Other Download: (Because i'm a nice guy lol)
http://www.mediafire.com/?2sz8oje9dy0muff
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.
This is really impressive. I just downloaded it and tested it on a whole folder of mine, worked perfectly.
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.
Wow , you coded that alone ?
Good job man , downloading this now.
(01-16-2012, 11:28 AM)ISO Wrote: [ -> ]Wow , you coded that alone ?
Good job man , downloading this now.

I did.

Source is available on my forum here: http://tech.reboot.pro/showthread.php?ti...9#pid12989
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.
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]