Solved C program attached one file to other

May 16, 2013 at 03:55:47
Specs: Windows XP
i want to know how to attached one (e.g file1.exe ) file with other-files (e.g file2.jpg or .pdf) on different directory and whenever other files (file2.*) get executed the file (file1.exe) that is attached to it also get executed
please help me this is for my University Project.
i search a lot on the internet but didn't get it.

See More: C program attached one file to other

Report •

May 17, 2013 at 19:59:21
✔ Best Answer
On a single system, you register your program as the handler for file2's type, or hook into the handler in some way. Examine the file in question. If it's file2, you do your special handling (launching file1.exe). If not, you do the normal handling.

Across multiple systems, it's an impossibility. It has to be. Otherwise, I could run a "wipe drive" program on anyone who stumbles across this page.

How To Ask Questions The Smart Way

Report •
Related Solutions

Ask Question