Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

I need help with scripting something very simple. (Maybe simple)

Featured Replies

  • Author
  • Localization

anime663, posted Thu Dec 06, 2018 12:42 pm (41041)


'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
  • Author
  • Localization

aluigi, posted Thu Dec 06, 2018 1:00 pm (41042)


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
  • Author
  • Localization

anime663, posted Thu Dec 06, 2018 1:21 pm (41044)


Thank you!!!!! :D
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.