Thanks, but that use a winapi call "CopyFile" from user32.dll to generate a copy, and not directly open the argv[0] file.
And not, I dont want to build a selfextractor, but a selfextractor that really open argv[0] itself can be usefull, so will google more about that idea.
Thanks!
--Tei
[EMAIL PROTECTED] escribi�:
Tei,
My guess is that you are trying to write a self-extracting file. Look at the following link to find out how this can be done on Windows.
http://www.codeproject.com/file/packersfx.asp
There are a few more examples at the codeproject site.
-Scott
tei wrote:
This is slighty off-topic:
I want to merge a .exe file and a pak file, and code into the exe file the ability to read these file:
copy mini.exe minipak.exe cat 8pool\pak1.pak >> minipak.exe
So minipak is mini.exe + pak1.exe (become a big 8 MB exe file)
But this fails:
f = fopen(argv[0], "rb");
Help! Yes, I know the argv[0] file will be already open by windows. A workaround? a solution?
TIA
--Tei
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

