Page 1 of 1

Tyring to edit a .exe file to change the name of output file

Posted: Sat Oct 17, 2015 6:48 pm
by Drew Sebastino
Well, basically, I'm trying to edit this file that splits the high and low bytes of any file apart to where the output files are named "a2-l0-a.8h" and "a2-h0-a.6h" instead of "1.bin" and "2.bin" respectively. The reason for this is, you guessed it, I'm trying to take another shot at the Irem M92 and I'm sick of having to rename the files every time I assemble it, which is often when you're trying to do something you haven't had any success with.

Anyway, this is the file. I wouldn't be too surprised if it would just even be easier to just make a new .exe file.
split.zip
(970 Bytes) Downloaded 131 times
Actually, you know what would be even better? If the program had the option of naming the file whatever and you could have a .bat file that you could click to open it and it would automatically give it a specified name. That way, you could name it multiple things if needed, although I don't think I will.

Re: Tyring to edit a .exe file to change the name of output

Posted: Sat Oct 17, 2015 6:53 pm
by lidnariq
Why not learn how to write a Makefile or a batch file that will do the renaming for you?

Re: Tyring to edit a .exe file to change the name of output

Posted: Sat Oct 17, 2015 7:15 pm
by Drew Sebastino
Yeah, that would probably be a good idea... Where can I learn that? :lol:

Re: Tyring to edit a .exe file to change the name of output

Posted: Sat Oct 17, 2015 7:32 pm
by lidnariq
The simplest possible place to start would be something like this:

Code: Select all

split.exe infile.bin
move /y 1.bin a2-l0-a.8h
move /y 2.bin a2-h0-a.6h
and put that in "dosplit.bat" or somesuch.

This looks like a reasonable tutorial: http://steve-jansen.github.io/guides/wi ... scripting/

Re: Tyring to edit a .exe file to change the name of output

Posted: Sat Oct 17, 2015 8:29 pm
by Drew Sebastino
Yeah, on second thought, I think I'll just suck it up a while longer... I'll eventually come crawling back here though. :lol:

Re: Tyring to edit a .exe file to change the name of output

Posted: Wed Nov 11, 2015 9:07 pm
by chromableedstudios
give this a shot, i borked the error messages but i think it'll do the names you want(except i dont really know how to test it)

Re: Tyring to edit a .exe file to change the name of output

Posted: Thu Nov 12, 2015 4:49 pm
by freem
and if that doesn't end up working for you, perhaps give romwak a try; the /b flag should do what you're looking for.