Click here to Skip to main content
15,913,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can anyone pls help me to end a process called "iphuc.exe"
thanks in advance


btw here is my code if there is an esaier way
Process^ myProcess = gcnew Process;
myProcess->StartInfo->FileName = "cmd.exe";
myProcess->StartInfo->Arguments = "/c C:/iphuc.exe -o deviceinfo > C:/conn";
myProcess->StartInfo->CreateNoWindow = true;
myProcess->Start();



[edit]Added OP's code, in pre tags[/edit]
Posted
Updated 1-Jan-11 6:10am
v3
Comments
Richard MacCutchan 1-Jan-11 12:12pm    
Try just using the "iphuc.exe" as the command name rather than starting it through a command prompt process.
Manfred Rudolf Bihy 1-Jan-11 12:25pm    
See my modified answer. You should have shown that code bit earlier as your problem would have been already solved. :)

Look here on CP:

http://www.codeproject.com/KB/threads/killprocess.aspx[^]

Modification:
C++
Process^ myProcess = gcnew Process;
myProcess->StartInfo->FileName = "cmd.exe";
myProcess->StartInfo->Arguments = "/c C:/iphuc.exe -o deviceinfo > C:/conn";
myProcess->StartInfo->CreateNoWindow = true;
myProcess->Start();

//Here is how to kill it
myProcess->Kill();


That should help you!

Regards,
Manfred
 
Share this answer
 
v3
Comments
Seif Hatem 1-Jan-11 11:57am    
Sorry but i can't understand anything
Manfred Rudolf Bihy 1-Jan-11 12:20pm    
Sure if you already have your Process instance it goes like this:
myProcess->Kill();
And you're done! :)
Seif Hatem 1-Jan-11 12:36pm    
Thanks it worked
I really didn't see anyone helpful like you before (Also thanks for Alan)
Manfred Rudolf Bihy 1-Jan-11 12:44pm    
Glad I could help!
Espen Harlinn 5-Jan-11 13:59pm    
5+ Good, keep it nice and simple
Have you tried

iphuc help
iphuc exit

or with a process name like that, perhaps it's

iphuc off

Alan.
 
Share this answer
 
Comments
Seif Hatem 1-Jan-11 12:04pm    
btw here is my code if there is an esaier way
[CODE]Process^ myProcess = gcnew Process;
myProcess->StartInfo->FileName = "cmd.exe";
myProcess->StartInfo->Arguments = "/c C:/iphuc.exe -o deviceinfo > C:/conn";
myProcess->StartInfo->CreateNoWindow = true;
myProcess->Start();
[/CODE]
thanks in advance

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900