Hacking Rom Trimming Batch Script - For use with rom_tool

y03usw6e

Well-Known Member
OP
Member
Joined
Mar 15, 2014
Messages
308
Trophies
0
Age
30
XP
270
Country
Belgium
I figured this will probably be useful to some people, so I thought I'd post it.

Using Google, alongside some trial and error, I've created a batch script that can be used to trim all your roms at once.

Code:
for %%x in (*.3ds) do rom_tool -i %%x | find /i "CARD1" 1>nul && rom_tool -t %%x

It will run on all files with the extension 3ds that are in the same directory as the batch file.
It will start off by doing rom_tool -i filename.3ds. This command displays the CCI info for the file.
Next, it searches for the text CARD1 in the output created by that command.
If it finds the text CARD1, it will run rom_tool -t filename.3ds, which is the command for trimming.

If the text CARD1 is not found, it will do nothing with the file. This ensures that CARD2 and any future media types will not accidentally be trimmed.

To use the script simply copy the code into notepad, then save the file with the extension .bat
put this bat file into the same directory as rom_tool.exe, which can be downloaded here.
Finally, all the roms you want to trim need to be in the same directory as those 2 files (unless you feel like editing the script to change that).
 
  • Like
Reactions: Arif and justinkb

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • x65943 @ x65943:
    lmao, how did that guy get elected
  • x65943 @ x65943:
    I realize it's a small town, but a known drug user whose malpractice led to the death of a 3 year old
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah it's pretty messed up
  • Psionic Roshambo @ Psionic Roshambo:
    Not even a real Dr lol
  • Psionic Roshambo @ Psionic Roshambo:
    And a shoot out with the police is like RoboCop lol
  • K3Nv2 @ K3Nv2:
    Temp is back back again
  • Xdqwerty @ Xdqwerty:
    why were servers down?
  • K3Nv2 @ K3Nv2:
    Because it was telling a friend
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, telling what?
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Maintenance most likely.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, understandable
  • SylverReZ @ SylverReZ:
    Hopefully it wasn't a DDoS attack.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, i was already believing that was the reason it was down
  • SylverReZ @ SylverReZ:
    @Xdqwerty, The response from the page said it had too many connections. So perhaps, flooded traffic?
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, it didnt say that for me
  • SylverReZ @ SylverReZ:
    @Xdqwerty, It only shows that if you do 'View Source', right below that it'll tell you the SQL response query. I feel like a nerd lol.
  • SylverReZ @ SylverReZ:
    But for everyone, it said unexpected database error.
    +1
  • BigOnYa @ BigOnYa:
    Just said database error for me
    +2
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, she said it only said "too many connections" when you view the source
    +1
  • Xdqwerty @ Xdqwerty:
    btw gonna try to actually beat touhou 6
    +1
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Have fun.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, i recall playing some hard undertale fangames way before playing touhou, like the genocide asgore fangame or the mettaton neo 2.0 one
  • Xdqwerty @ Xdqwerty:
    so atleast im already kinda used to bullet hell games
  • Xdqwerty @ Xdqwerty:
    and yea i played both undertale and deltarune too although those are a piece of cake compared to any touhou game
    Xdqwerty @ Xdqwerty: and yea i played both undertale and deltarune too although those are a piece of cake compared...