Back to Technical Help

automating the trim method

seventhsageOP
#1
Currently when I download a game from the site, i save everything to a single folder, called sort. on the desktop (along with all my other files) My mom and brother each got an r4 recently, because i got mine and showed them. Since they want me to download all the games they want, it's getting really tedious unpacking, trimming, and backing up each rom individually. I currently have a batch file that uses winrar's command line to extract the files, and then moves them to another folder for temporary storage while I swap microsd cards in and out for each different r4. I am trying to get a batch file command that I can incorporate into a single batch file that will extract, move, trim, and backup the rom for me... anyone know if this is even possible? This is what my batch file contains so far. (it also cleans up after itself)
set path="C:\Program Files\WinRAR\";%path%
cd "C:\Documents and Settings\Jason\Desktop\sort"
unrar e *.rar
del *.nfo
del *.rar
move *.nds "C:\Documents and Settings\Jason\Desktop\to r4"
I use dslazy to trim the rom, if anyone knows a way to make this work in batch (more than one file at a time, let me know.
Loonylion
#2
depends if dslazy has a commandline, but you'd probably have to do a loop through all the files in the folder and trim each file one at a time within the loop.
anandjones
#3
NDSTool (backend of DSLazy) by DarkFader (starter of DS homebrew support) is command line operated. You may be able to do it within that, with the trimming etc. functions from NDSTool itself. You could consider emailing DarkFader for some of the specific commands you can use to operate those functions.
seventhsageOP
#4
ok, i'll give ndstool a try... I know you can go into the dslazy folder and make a shortcut to the trim.exe file, then you can drag and drop onto it, but when you're doing that to twenty or thirty files a day, that can get tedious in itself. Thanks for the help, and if i get anything working right, i'll post it here so others can use it. I'm sure i'm not the only one who wants this to work..-jason
1prinnydood
#5
Download this from Team Cyclops http://www.cyclopsds.com/downloads/EvoTools-1.0-BETA2.zipIncluded is an auto ROM trimmer, simply set the path to where your ROMs are and it will trim them all automaticaly, as this is simply a trimmer it does not require you to own a Cyclods card. The included cheat database editor is probably not compatible with your flash card. The tool pack also lets you display ROM icons on your PC :)You may need to restart your PC for the trimmer to take effect. Enjoy.
anandjones
#6
Ah, now that's definitely helpful :P Thank you.
Krusha
#7
It's not command line based but theres a trimmer that trims compressed roms (dunno if it unpacks them) backs up the files and batch trims as well as more functions, it's GUI though.I beleive its called NDSTokyoTrim
seventhsageOP
#8
1prinnydood · #5Download this from Team Cyclops http://www.cyclopsds.com/downloads/EvoTools-1.0-BETA2.zipIncluded is an auto ROM trimmer, simply set the path to where your ROMs are and it will trim them all automaticaly, as this is simply a trimmer it does not require you to own a Cyclods card. The included cheat database editor is probably not compatible with your flash card. The tool pack also lets you display ROM icons on your PC :)You may need to restart your PC for the trimmer to take effect. Enjoy.
any idea if i can call this from the command line, or from within a batch file? If so, we are golden... I'll give it a shot, but sometimes syntax can be a bitch. I'll let you know how it goesedit: I like this, it works well, but i'd prefer something I could call from the command line, so it doesn't trim roms unless i want it to. I'm trying to automate this process as much as possible, but occasionally, a rom needs a patch, which almost always requires it to be untrimmed. I like this, but i'll keep checking around, seeing if i can do something that's not as automatic.Edit 2: Tokyo trim works wonders, i'll use it. I can always call the .exe in the batch file and then close it when i'm done. I like the backup option too. Ndslazy makes you re-name it everytime it trims, which can be a pain in the ass. i think this program's what i need. Props to the creator. Download here:http://techsuki.net/downloads/NDSTokyoTrim.exeno install required, just run the file
seventhsageOP
#9
sorry for the double post, but it's been a while and I want to bump this as there's a new problem... Tokyotrim can automatically remove the rom id number from it... but does anyone know if it can also remove the region and rom information as well... so that something like1111 - Rom_name_(U)_(Xenophobia).nds becomes justRom name.ndswithout having to individually rename every one of them. Again tokyotrim can remove the id numbers from it, but I'd like to remove the region code as well, preferably in a batch fileany help appreciated
Showing posts 1–9 of 9 · This discussion is archivedBack to top