Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5959113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:38:24+00:00 2026-05-22T18:38:24+00:00

ProcessStartInfo psi = new ProcessStartInfo(BatchFile) Process p = Process.Start(psi) Why p.ID is different than

  • 0
ProcessStartInfo psi = new ProcessStartInfo(BatchFile)

Process p = Process.Start(psi)

Why p.ID is different than process id visible in WindowsTaskManager

(BatchFile is path to external program with appropriate parameters)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:38:24+00:00Added an answer on May 22, 2026 at 6:38 pm

    A process ID is only meaningful while the process is alive. The first thing to check is .HasExited – if this is true, ignore the process ID; it no longer has any meaning.

    There are a number of ways you can start something and have no process left even though you can apparently see it still on screen:

    • if it is a script/bat/cmd that spawns something and exits (remember: you are watching the script, not the “something”)
    • if the exe does some inter-exe voodoo internally – for example, most of the office apps and internet explorer do this; if there is an existing process, it forwards the args to that process to handle, and exits immediately
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Process process = new Process(); ProcessStartInfo psi = new ProcessStartInfo(@C:/PsExec.exe); psi.UseShellExecute = false; psi.RedirectStandardOutput
When I using (var process = new Process { StartInfo = new ProcessStartInfo {
How do I run external process in hidden mode (no windows should be visible)
I'd like to create a new process which will clean up after itself, even
ProcessStartInfo procStartInfo = new ProcessStartInfo(cmd, /c +processNeedToRun) { RedirectStandardError = true, RedirectStandardOutput = true,
Title says it. I know I can use Process or ProcessStartInfo to run arguments,
I have a process that needs to run under administrative privileges. I need the
I am calling Java process from .NET application and I need to redirect console
I am launching a process and writing an intruction xml file to the destination
My situation: I'm running a C# testing program which allows me to configure certain

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.