Connecting Tech Pros Worldwide Help | Site Map

exe file question

  #1  
Old November 17th, 2008, 07:05 AM
=?Utf-8?B?S2lk?=
Guest
 
Posts: n/a
Hi

Can I attach data at the end or middle of exe file , is there some good tool
or sample ?

Can I delete exe file by its process , will it be locked , is it possible to
write some function in process to remove the running exe itself and its
folder after process end ?
  #2  
Old November 17th, 2008, 09:55 AM
Pavel A.
Guest
 
Posts: n/a

re: exe file question


Wrong newsgroups.
If the data you want to attach is resources, there's win32 API to do this.

Regards,
--PA

Kid wrote:
Quote:
Hi
>
Can I attach data at the end or middle of exe file , is there some good tool
or sample ?
>
Can I delete exe file by its process , will it be locked , is it possible to
write some function in process to remove the running exe itself and its
folder after process end ?
  #3  
Old November 17th, 2008, 04:35 PM
Joseph M. Newcomer
Guest
 
Posts: n/a

re: exe file question


Define "data". You can use BeginUpdateResource/EndUpdateResource/UpdateResource.

There are a number of methods of deleting executables that are running, and some folks in
this newsgroup have answered this; you might also try a google search of the archives.
joe

On Sun, 16 Nov 2008 23:01:01 -0800, Kid <Kid@discussions.microsoft.comwrote:
Quote:
>Hi
>
>Can I attach data at the end or middle of exe file , is there some good tool
>or sample ?
>
>Can I delete exe file by its process , will it be locked , is it possible to
>write some function in process to remove the running exe itself and its
>folder after process end ?
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
  #4  
Old November 17th, 2008, 08:55 PM
David Ching
Guest
 
Posts: n/a

re: exe file question


"Kid" <Kid@discussions.microsoft.comwrote in message
news:9376BF75-AB94-4630-9F36-142FD86B4B05@microsoft.com...
Quote:
Hi
>
Can I attach data at the end or middle of exe file , is there some good
tool
or sample ?
>
See the UpdateResource() API.

Quote:
Can I delete exe file by its process , will it be locked , is it possible
to
write some function in process to remove the running exe itself and its
folder after process end ?
See DeleteExecutableBF written by Jeffrey Richter:
http://www.microsoft.com/msj/archive/SF9C.aspx

-- David

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Size of Exe file Dot.Hu answers 3 November 21st, 2008 11:35 PM
How to convert exe file of cgi script into .cgi extension. Muzammil answers 2 August 28th, 2008 08:55 PM
making an .exe file in VC++ Karthik answers 2 July 23rd, 2005 06:53 AM
exec, passthru disabled so how to call C++ .exe file? Greg Chapman answers 2 July 17th, 2005 02:29 PM