I need help with ending remote processes
I have a completely basic program here that I want to simply take text from a textbox and the selection from a combobox, and then run the following:
Code:
taskkill.exe /S %WKID% /im %PROCESS%
Obviously WKID and PROCESS are the variables it will be pulling from the data that was put in by the user. That code was just in a simple batch file that I made with 2 variables. I am wanting to pull those 2 variables in when clicking the "kill process" button, it will run a command simliar to the above and end a process on a remote networked computer. Thanks for all help in advance!
Re: I need help with ending remote processes
To run an external process, you can use the Process class, theres a pretty good example here, including arguments.