Results 1 to 2 of 2

Thread: I need help with ending remote processes

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    1

    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!

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width