ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Dec 12, 2018 2:40 pm

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Dec 06, 2018 12:42 pm 

Joined: Fri Jan 29, 2016 3:25 am
Posts: 10
'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.

Image


Attachments:
what is coding.png [22.67 KiB]
Not downloaded yet
Top
   
PostPosted: Thu Dec 06, 2018 1:00 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9453
If you want to use quickbms try this script:
Code:
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:
quickbms.exe -D script.bms c:\input_folder c:\output_folder


Top
   
PostPosted: Thu Dec 06, 2018 1:21 pm 

Joined: Fri Jan 29, 2016 3:25 am
Posts: 10
Thank you!!!!! :D


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited