General information
Category:
Coding, syntax & commands
Remind my old friend Justin Case that it might be different between users, UAC and policy under which pc operates ;-)
>>>Is it possible to add/include a file to an EXE file? As if the file was included at design/compile time?
>>
>>I've recently learned that in Windows, you can add content to the end of the .EXE file that Windows just ignores. I was amazed this was allowed because it seems to be a way for viruses to propagate.
>>
>>In order to access the content that's been appended would require some special coding logic, but in theory you could do it using _sopen() and seeks and reads to read in the block. If you stored a value in the last 9 digits of the file, for example, indicating how big the block was before those digits, you could read in just that portion and then parse it out however you need.
>>
>>But the answer is yes you can add files to a .EXE after it's been built, and no they can't be accessed exactly as if they were built at compile-time. But they would be accessible, and you could include all of the program logic within the one .EXE to access that content.
>
>Hi Rick,
>I have created a way to get around the need of adding a file to an EXE. So, at this point, this is not necessary.
>But I will keep your message, just in case.
>Thank you.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only