Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add file an .EXE after it is built?
Message
De
24/06/2020 04:48:41
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01668100
Message ID:
01675009
Vues:
73
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform