What include file is needed?

closed account (LAfSLyTq)
to use Kill();
ive tried #include <iostream, Windows.h> and thats all that comes to my mind.
signal.h
Last edited on
closed account (LAfSLyTq)
can somone tell me why

Process::Kill("IExplorer.exe");

does not work?
Last edited on
Isn't the Internet Explorer process called iexplore.exe?
Last edited on
closed account (LAfSLyTq)
Yes, im using it as an example.
it says Kill cannot take 1 arguements
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.kill.aspx

The method you're trying to call does not take any input parameters. What would happen if there was more than one IExplorer.exe process?
Is this the function you talk about? http://msdn.microsoft.com/en-us/library/system.diagnostics.process.kill.aspx
It doesn't take any arguments. It just kills the current process.
If you told us what you're trying to do, we might be able to suggest a simpler method.
closed account (LAfSLyTq)
im just trying to close down a specific program using Process::Kill();
anything will work if it shuts down the program.
Last edited on
closed account (LAfSLyTq)
i also have now tried system("taskkill notepad.exe");
Last edited on
closed account (LAfSLyTq)
link ones code couldnt close out notepad
and i dont even understand #2s code at all
Last edited on
taskkill is used as follows:

taskkill /im "notepad.exe",

not
taskkill notepad.exe
Last edited on
closed account (LAfSLyTq)
thnx

system("taskkill /im notepad.exe");

worked.
Topic archived. No new replies allowed.