Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Write data to EXE file
#2
A running EXE tends to lock itself from external changes.  You can read from it, or copy from it, but once it's running, you can't just alter it.  The only way you'd be able to do something like you're talking about would be to copy the EXE to a back-up file, write to that back-up EXE, then write a quick script for DOS to execute after you close the EXE (usually a SHELL _DONTWAIT "batch.bat" followed immediately with a SYSTEM will work just fine) which will delete the old EXE, rename the new backup EXE to the old name, and then restart with the changed EXE (if a restart is needed and you're doing the update when the program closes anyway).
Reply


Messages In This Thread
Write data to EXE file - by Steffan-68 - 05-14-2023, 05:18 PM
RE: Write data to EXE file - by SMcNeill - 05-14-2023, 05:41 PM
RE: Write data to EXE file - by Steffan-68 - 05-14-2023, 08:37 PM
RE: Write data to EXE file - by mnrvovrfc - 05-14-2023, 10:31 PM
RE: Write data to EXE file - by Steffan-68 - 05-15-2023, 09:58 AM
RE: Write data to EXE file - by euklides - 05-15-2023, 03:00 PM
RE: Write data to EXE file - by Steffan-68 - 05-15-2023, 04:23 PM
RE: Write data to EXE file - by Kernelpanic - 05-15-2023, 05:21 PM
RE: Write data to EXE file - by Steffan-68 - 05-15-2023, 06:41 PM



Users browsing this thread: 1 Guest(s)