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
  • light27 @ light27:
    call sps
  • Psionic Roshambo @ Psionic Roshambo:
    Hey mine helps me in the shower lol
  • Xdqwerty @ Xdqwerty:
    We went to a place in a mall where they let you play with some consoles for like an hour
  • Xdqwerty @ Xdqwerty:
    I choose the nintendo switch and I played smash ultimate and Mario wonder
  • Xdqwerty @ Xdqwerty:
    It was fun
    +1
  • Xdqwerty @ Xdqwerty:
    Also i'm back at my house
  • Psionic Roshambo @ Psionic Roshambo:
    Smash bros sounds like gay incest lol
    +1
  • BigOnYa @ BigOnYa:
    And Mario Wonder sounds like a Mario with old timers disease walking the streets lost.
    +1
  • K3Nv2 @ K3Nv2:
    Shove a gerbil through a tube
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Warp pipe Ken lol
    +1
  • K3Nv2 @ K3Nv2:
    Ring actually helped and I didn't have to cuss out the guy in arabic
  • BigOnYa @ BigOnYa:
    They help you delete some incriminating videos?
  • K3Nv2 @ K3Nv2:
    No you asked for proof that your wife was finally leaving
    +1
  • BigOnYa @ BigOnYa:
    Nuh I had her chipped, I always know where she is.
  • K3Nv2 @ K3Nv2:
    I found where it was
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    If I could halucinAte this is what I imagine it would look like?
  • K3Nv2 @ K3Nv2:
    Featuring Taylor swift
  • BakerMan @ BakerMan:
    guys, pubg should've never blown up
  • BigOnYa @ BigOnYa:
    Wut do you mean? Pubg is alright, I play it with a few buddies online.
  • BakerMan @ BakerMan:
    the game itself is ok, but it's influence is the problem
  • K3Nv2 @ K3Nv2:
    Call of duty is a good Fortnite skin
  • BakerMan @ BakerMan:
    call of duty and fortnite, ex-fucking-actly
  • BakerMan @ BakerMan:
    without pubg popping off, fortnite wouldn't add battle royale, and call of duty wouldn't go even shittier than it did before because of blackout, warzone and dmz
    BakerMan @ BakerMan: without pubg popping off, fortnite wouldn't add battle royale, and call of duty wouldn't go even...