Click here to Skip to main content
15,886,017 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to make sure Socket has connected? Pin
pbraun31-Jul-07 8:45
pbraun31-Jul-07 8:45 
GeneralRe: how to make sure Socket has connected? Pin
led mike31-Jul-07 9:06
led mike31-Jul-07 9:06 
QuestionUnrecognized attribute 'xmlns' Pin
kalyan_241631-Jul-07 0:46
kalyan_241631-Jul-07 0:46 
AnswerRe: Unrecognized attribute 'xmlns' Pin
Vasudevan Deepak Kumar31-Jul-07 0:58
Vasudevan Deepak Kumar31-Jul-07 0:58 
AnswerRe: Unrecognized attribute 'xmlns' Pin
prasanna muthuramalingam31-Jul-07 1:42
prasanna muthuramalingam31-Jul-07 1:42 
GeneralRe: Unrecognized attribute 'xmlns' Pin
kalyan_241631-Jul-07 1:52
kalyan_241631-Jul-07 1:52 
QuestionHow to get installed products on a system Pin
Yosh_31-Jul-07 0:41
professionalYosh_31-Jul-07 0:41 
AnswerRe: How to get installed products on a system Pin
Luc Pattyn31-Jul-07 1:00
sitebuilderLuc Pattyn31-Jul-07 1:00 
Hi,

you can detect the existence of the EXE file with File.Exists() but if the app
is running, you will not be able to overwrite it.

you can detect the EXE being active by checking the running processes, e.g.
with Process.GetProcesses(). You could try to kill the process if it is running,
after making sure it is your program to begin with.

Of cource, a security app should protect itself against being killed and/or
overwritten. I have seen security apps that consist of more than one EXE that
keep watch on each other. As soon as one exe sees another part is missing,
it launches the app; if that occurs say every second (or based on a FileSystemWatcher
assuming it is fast enough), it becomes hard to manually kill it all.

Smile | :)


GeneralRe: How to get installed products on a system Pin
Yosh_1-Aug-07 3:41
professionalYosh_1-Aug-07 3:41 
GeneralRe: How to get installed products on a system Pin
Luc Pattyn1-Aug-07 3:53
sitebuilderLuc Pattyn1-Aug-07 3:53 
QuestionProblem in mdi form Pin
deepaksringr31-Jul-07 0:21
deepaksringr31-Jul-07 0:21 
AnswerRe: Problem in mdi form Pin
Martin#31-Jul-07 0:44
Martin#31-Jul-07 0:44 
GeneralRe: Problem in mdi form Pin
deepaksringr31-Jul-07 0:58
deepaksringr31-Jul-07 0:58 
AnswerRe: Problem in mdi form Pin
Yosh_31-Jul-07 0:55
professionalYosh_31-Jul-07 0:55 
QuestionUpdate the dataset into database table Pin
chandragupta.k30-Jul-07 23:37
chandragupta.k30-Jul-07 23:37 
QuestionWPF Treeview with Checkboxes Pin
Johan Lombaard30-Jul-07 23:37
Johan Lombaard30-Jul-07 23:37 
QuestionStart a Windows Forms application from a Windows Service Pin
usermans30-Jul-07 23:30
usermans30-Jul-07 23:30 
AnswerRe: Start a Windows Forms application from a Windows Service Pin
Luc Pattyn30-Jul-07 23:45
sitebuilderLuc Pattyn30-Jul-07 23:45 
AnswerRe: Start a Windows Forms application from a Windows Service Pin
justintimberlake30-Jul-07 23:58
justintimberlake30-Jul-07 23:58 
GeneralRe: Start a Windows Forms application from a Windows Service Pin
usermans31-Jul-07 22:55
usermans31-Jul-07 22:55 
QuestionVideo to FLV with c#? Pin
jafingi30-Jul-07 22:56
jafingi30-Jul-07 22:56 
AnswerRe: Video to FLV with c#? Pin
ekynox30-Jul-07 23:09
ekynox30-Jul-07 23:09 
QuestionPOST method Pin
suck12330-Jul-07 22:39
suck12330-Jul-07 22:39 
AnswerRe: POST method Pin
Guffa31-Jul-07 0:23
Guffa31-Jul-07 0:23 
GeneralRe: POST method Pin
suck12331-Jul-07 12:17
suck12331-Jul-07 12:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.