To get the process Id from .exe name or to get the ProcessId while execution of batch file name RRS feed

  • Question

  • Hi All,

    I guess i m in right forum, else plaese suggest me the right forum.

    Here is my query,

    Consider i m two running java.exe in processes. and i watnted to terminate one amongs them.
    SO i guess i should have processId to terminate that process.

    So i what i need is to get the processsID while the launch of batch file. so that later i can refer to that and kill the process.

    Is that possible to get the processId while execution of batch file?

    Thanks in advance.

    • Moved by OmegaMan Monday, August 4, 2008 4:19 PM Not a regex question (Moved from Regular Expressions to Off-Topic Posts (Do Not Post Here))
    Thursday, July 31, 2008 11:05 AM


  • This is definately not the correcr forum. This forum is for REGEX (Regular Expression). You may want to try .net Base Class Library, however, it's difficult to determine from your question what exactly you are looking for.
    • Marked as answer by OmegaMan Monday, August 4, 2008 4:18 PM
    Thursday, July 31, 2008 12:56 PM