Get a Complete Set of Logs with Andy Log

The importance of proper logging is undeniable. No, we’re not talking about lumberjack work. … more

Try Some Android Lollipop Applications on Your Device

Android 5.0 Lollipop has been officially announced and lucky users of Google Nexus 5 … more

AutoCon Manages Your Connections to Perserve Battery Life

As we’ve talked about in the past, battery life is still somewhat of a sore … more

How to Unlock and Root a Nexus Device – XDA TV

It is official–Google has released the Nexus 6 and the Nexus 9. The Nexus family … more
Post Reply

[UTIL][24MAY10]PreKitchen Tool (Sort, Clean, Merge and create folders)

OP TehPenguin

29th July 2009, 02:10 PM   |  #1  
TehPenguin's Avatar
OP Retired Senior Moderator
Flag Redmond
Thanks Meter: 5
 
588 posts
Join Date:Joined: Nov 2006
Donate to Me
More
(Formerly "Dump Sorter" and "XipDumpSort")

New and Improved - Much more functionality than the old one!
I'm trying to make this a general cleaning\sorting\worker app for processing dumped folders. If you'd like a feature added, please let me know.

What is it?
This is a simple program designed to take the hard work out of rearranging, cleaning and merging dumped ROMs with Kitchens.

What can it do?
  • Clean - Removed all files with the same name as their directories (This is very useful when converting files to modules)
  • Sort - Files and Folders can be sorted by:
    • Ervius Kitchen's folder format
    • osKitchen's folder format
    • By comparing to a donor folder (should work with any kitchen)
  • Unsort from:
    • Ervius Kitchen's folder format
    • osKitchen's folder format
  • Merge missing file and folders from a donor directory (useful when the dump is missing files\folders) (SVN Directories are ignored ('.svn' and '_svn'))

How to install
Click the 'Install' button at http://vidmes.com/dumpsorter/publish.htm
(In order to use the 'launch' link, you need to be using IE)
(Alternatively, just use the zip below)

Notes
Merging is done last, so if the donor directory is 'dirty', this 'dirt' will be copied across

This requires .NET 3.5

Also attached is the source code (for anybody interested) - the project was built using Visual Studio 2010, so it may not open in older versions of VS

Known Issues
Things to do
  • Get a logo\icon
  • Ability to pull data from archives (eg zip, rar and 7 zip)

Changelog
Version numbers: <installer version> (<executable version>)

* 0.3.0.3 (0.3.3796.19478)
Fixed: Settings in ComboBoxes would not save (e.g. language, resolution, etc)
WARNING: Upgrading to 0.3.0.3 will wipe any of your current settings

* 0.3.0.2 (0.3.3789.38088)
Fixed: Bug where the 'Browse' button for selecting the donor folder to clone didn't do anything

* 0.3.0.1 (0.3.3734.42067)
Added: Support for OndraStar's osKitchen (sorting, unsorting, creating blank folders)

* 0.3.0.0 (0.3.3733.25038)
Added: Ability to unsort from Ervius format
Added: Ability to only sort DPI\RES\LANG that you actually want

* 0.2.0.1 (0.2.3518.38275)
Added: Ability to invert log
Added: Update log on the fly (instead of at the end)
Fixed: Progress bar go to 100% when complete (or reset afterwards)

* 0.2.0.0 (0.2.3516.36999)
Added: Ability to create a default folder layout for Ervius SYS

* 0.2.3516.24314
Added: About box
Fixed: Merger now ignores SVN directories ('.svn' and '_svn')

* 0.2.3516.23053
Added: Cleaner (remove files with same name as directory)
Added: Sorter for Ervius SYS format
Added: Merger (file and folder)
Fixed: Sorter now removes 'unsorted' directory if it is empty

* 1.0.3509.31117
Fixed: Browse buttons now re-enable after sorting is complete

* 1.0.3497.39310
Initial release
Last edited by TehPenguin; 26th May 2010 at 02:35 PM. Reason: new version
29th July 2009, 05:50 PM   |  #2  
kancrutt's Avatar
Senior Member
Flag JakARTa
Thanks Meter: 38
 
1,043 posts
Join Date:Joined: Nov 2007
More
thanx Mr Moderator
its very usefull
10th August 2009, 02:47 PM   |  #3  
jmckeejr's Avatar
Senior Member
Flag Altoona, Pa
Thanks Meter: 16
 
1,559 posts
Join Date:Joined: Aug 2008
More
WOW!! This is an awesome tool. I'm definitely gonna be giving it a try. Thanks

EDIT: Works perfect
Last edited by jmckeejr; 10th August 2009 at 06:55 PM.
10th August 2009, 05:18 PM   |  #4  
ivanmmj's Avatar
Retired Moderator
Thanks Meter: 38
 
5,164 posts
Join Date:Joined: Jan 2007
Donate to Me
More
This thing is awesome. It's perfect for organizing SYS folders for any kitchen based on ervius's visual kitchen.
10th August 2009, 07:09 PM   |  #5  
DarkAngelFR's Avatar
Senior Member
Flag Lille
Thanks Meter: 1
 
191 posts
Join Date:Joined: Aug 2008
More
Wink
Hello,
Thanks for this tool, it's really nice!!!
Just small thing added to your code :
Code:
void bgwDoSorting_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
	txtLog.Text = (string)e.UserState;
	pgbrStatus.Value = (e.ProgressPercentage > 100) ? 100 : e.ProgressPercentage;
}
and :
Code:
//old : bgwDoSorting.ReportProgress(workDone * 100 / workTotal);
bgwDoSorting.ReportProgress(workDone * 100 / workTotal, result);
I also reverse the log to have latest lines on top (log+newline instead of newline+log)


Thanks for the great job!!
Last edited by DarkAngelFR; 10th August 2009 at 07:09 PM. Reason: design of the post...
10th August 2009, 07:35 PM   |  #6  
SOHKis's Avatar
Senior Member
Flag VA
Thanks Meter: 152
 
570 posts
Join Date:Joined: Apr 2008
More
very nice, thanks for sharing!
11th August 2009, 02:06 AM   |  #7  
TehPenguin's Avatar
OP Retired Senior Moderator
Flag Redmond
Thanks Meter: 5
 
588 posts
Join Date:Joined: Nov 2006
Donate to Me
More
Quote:
Originally Posted by DarkAngelFR

Hello,
Thanks for this tool, it's really nice!!!
Just small thing added to your code :

Code:
void bgwDoSorting_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
	txtLog.Text = (string)e.UserState;
	pgbrStatus.Value = (e.ProgressPercentage > 100) ? 100 : e.ProgressPercentage;
}
and :
Code:
//old : bgwDoSorting.ReportProgress(workDone * 100 / workTotal);
bgwDoSorting.ReportProgress(workDone * 100 / workTotal, result);
I also reverse the log to have latest lines on top (log+newline instead of newline+log)


Thanks for the great job!!

I was considering that, but I think you'll find it will run a bit slower (due to having to constantly update the log box). Then again, if you have a dual processor machine (and who doesn't?), you probably won't notice a difference.
11th August 2009, 02:49 AM   |  #8  
jmckeejr's Avatar
Senior Member
Flag Altoona, Pa
Thanks Meter: 16
 
1,559 posts
Join Date:Joined: Aug 2008
More
Any chance someone would also be interested in writing a batch file or simple program to delete duplicate files inside of a folder? ie: if there happened to be files inside of the module folder as well as the actual module files. So for example "tapres.dll" module folder for some reason has "tapres.dll" file inside. Would need to got hrough whole SYS though.
11th August 2009, 03:06 AM   |  #9  
BesFen's Avatar
Senior Member
Flag Surabaya
Thanks Meter: 10
 
1,028 posts
Join Date:Joined: Mar 2008
More
I am testing it now....
11th August 2009, 05:14 AM   |  #10  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Aug 2009
Pretty cool set of resources...thanks
Point of Sale.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes