I could make something that works for me (using Python), but that wouldn't help random other people who don't have Python (yes I know it's easy to get & install, but still). Ideally though I'd rather do this in a batch job that does the following: I can do this in Python easily, e.g.: with open("PLAYER_A.DAT", "rb") as f: the byte at address 0x04) from x00 to x06. It turns out this can be fixed by changing the 5th byte in the file (i.e. As a result, the game can be played fine the first time but subsequently crashes. There's a bug in GTA 1 when downloaded from Steam whereby the save-game data file gets corrupted on exit. I'm looking for something similar for Windows.
This existing question is solved, but that's a Linux solution. I want to be able to edit a single byte, at a known position, in an existing file. a way that could be written into a batch file?
#BINARY EDITOR WINDOWS WINDOWS#
Please like and share this guide to help others.Is there a way in Windows to edit a binary file, from the command line? i.e. That's it! Let me know if this guide has helped you by leaving your comment about your experience.
Finally press Enter to execute the command and you' re done! After that, the "reg add" command will look like this: Go at the end of the "REG ADD" command, add a space after "/d" and press CTRL + V to paste the data of the REG_BINARY value. Select all the text with CTRL + A and press CTRL +V to copy it in the clipboard.ħ. At the end, you'll have a long line, like the following in the screenshot below:Ħ. Now remove (delete) from the text all the Backslashes (\), the Page Breaks, the spaces and the Commas (,).ĥ. Open a new notepad window and press CTRL + V to paste the copied data from the clipboard.Ĥ. the "System Bus Extender" Binary value.)ģ. Select and Copy ( CTRL + C) in clipboard all the data after the "hex:" prefix of the REG_BINARY value (that you want to import, e.g. Open the Registry (.REG) file that contains the REG_BINARY value that to you want to import by using the "reg add" command.Ģ. To convert REG_BINARY hexadecimal data in order to use them in REG ADD command, follow the steps below:ġ. The correct way to "reg add" a specific REG_BINARY value, is to convert the data of the REG_BINARY value in a form that the "reg add" command can recognize.
#BINARY EDITOR WINDOWS HOW TO#
How to ADD in Registry a REG_BINARY value with REG ADD command. As you may imagine the "reg add" command did not work, because the "reg add" command, does not accept backslashes, breaks or commas and gives the error: After copying the data, the "reg add" command looked like this: So, I copied the data of the "System Bus Extender" REG_BINARY value, (which are highlighted in the below screenshot), and I paste them on the end of the "REG ADD" command.Ĥ. REG file, I wanted to import only the "System Bus Extender" REG_BINARY value to "Computer B", so the only way to do that is by using the "REG ADD" command. REG file on the "Computer B" and I opened it in notepad, to view its contents.ģ. At "Computer A", I used the "Export command " in Registry Editor, to save the Registry key that contains the "REG_BINARY" value that I wanted to import to "Computer B".Ģ.
This tutorial contains instructions on how you can add to the registry a "REG_BINARY" registry value by using the "REG ADD" command.Ī few days ago I wanted to export and import a specific "REG_BINARY" registry value from one computer (let's call it "Computer A") to another (let's call it "Computer B"), by using the "REG ADD" command.