How to change the .exe file size ?
From: Peter Liu (Liu_at_discussions.microsoft.com)
Date: 12/07/04
- Next message: Gary Chanson: "Re: How to change the .exe file size ?"
- Previous message: Gary Chang[MSFT]: "RE: How to find a leaky Win16 program?"
- Next in thread: Gary Chanson: "Re: How to change the .exe file size ?"
- Reply: Gary Chanson: "Re: How to change the .exe file size ?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 7 Dec 2004 00:01:02 -0800
Is there any tool that can change the size of a exe file compiled by the
Visual C++ 6.0 ?
For example, the original file size of old.exe is 99 bytes and I want to
make it 100 byte by pading 1 byte to the old.exe.
I have tried the following:
copy /b old.exe+1.bin/b new.exe /b
where old.exe is the original application file of size 99 bytes.
1.bin is a binary file of 1 byte
new.exe is old.exe padded with 1 extra byte at the end. its size is 100
bytes now.
After that, I can run new.exe and its behavior is the same as old.exe.
However, I don't know if there is any side-effect of doing this.
Besides, is there any information on the formation of a exe file ?
I ask this question because I have to release an urgent fix of an exe file
but don't have time to change and re-test the install package. That install
package will verify the name and size of the exe. A lot of testings can be
skipped if I can build the new exe with the exact size as the old exe.
Regards,
Peter Liu
- Next message: Gary Chanson: "Re: How to change the .exe file size ?"
- Previous message: Gary Chang[MSFT]: "RE: How to find a leaky Win16 program?"
- Next in thread: Gary Chanson: "Re: How to change the .exe file size ?"
- Reply: Gary Chanson: "Re: How to change the .exe file size ?"
- Messages sorted by: [ date ] [ thread ]