'm a complete 100% idiot to scripting and this may just be a really simple thing. Also I don't know if this is the right topic. Plus maybe my question is answered elsewhere, or theres already tools for this. I did spend like 3 hours looking for a solution honestly, but its also 5:30AM.
Anyways, I wanted to easily batch delete 2 lines of hex from files. Just the first 2 lines. But I can't get any luck trying to find programs to do it, scripts to do it, whatever it is. ANY way to do it. Without individually doing it for every file. Considering I have like 7000 files to go through. Since in each file, the first 2 lines are all different I can't simply find specific values, I need the length.
I figured this would probably be a pretty easy thing to do in QuickBMS, or something. But like I have taken coding classes and let me just say, it was a disaster.
If anyone could help my stupid ass I'd appreciate it! It'd save me lots of time and pain in my hands.
I need help with scripting something very simple. (Maybe simple)
-
- Posts: 21
- Joined: Fri Jan 29, 2016 3:25 am
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: I need help with scripting something very simple. (Maybe simple)
If you want to use quickbms try this script:
You must use quickbms with the -D option which will create the original relative folders, full example:
Code: Select all
math OFFSET = 0x20
get SIZE asize
math SIZE - OFFSET
get NAME filename
log NAME OFFSET SIZE
You must use quickbms with the -D option which will create the original relative folders, full example:
Code: Select all
quickbms.exe -D script.bms c:\input_folder c:\output_folder
-
- Posts: 21
- Joined: Fri Jan 29, 2016 3:25 am