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

  • Home
  • SEARCH
  • 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 8061161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:14:28+00:00 2026-06-05T10:14:28+00:00

Background: I use DOS START command to start MyDaemon: @echo off START MyDaemon java

  • 0

Background: I use DOS START command to start MyDaemon:

@echo off
START "MyDaemon" java -cp test.jar MyTest /B

As part of this, I also want to check if MyDaemon is already running. If it is, I don’t want to start it again.

The dos command that doesn’t suit my requirement is:

tasklist /fi "imagename eq "MyDaemon" > nul
if errorlevel 1 start "MyDaemon" java -cp test.jar MyTest /B

and that’s because, in the tasklist, the image name is “java.exe”, not “MyDaemon”. I am looking for the “application name” as seen in task manager, not the image name.

So how can I perform this check to see if MyDaemon is already running using DOS?

  • 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-06-05T10:14:30+00:00Added an answer on June 5, 2026 at 10:14 am

    You may try:

    tasklist /fi "windowtitle eq MyDaemon"
    

    Type tasklist /? for further details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: I use a command line based user-interface to use ( = mostly test
Background: I use rails g scaffold hotel name stars:integer to start fast (and insert
First some background. I have a batch-type java process run from a DOS batch
This seems to only happen when I use background in the parameters of getPropertyValue();
I encountered this problem when updating my background to use a 9-patch image. The
I don't often use background-position, so maybe I'm not doing this correctly, but my
BACKGROUND We use Makefiles as one part of our regression suite. We have some
Background I use JScript (Microsoft's ECMAScript implementation) for a lot of Windows system administration
A little background: I use PowerShell on windows xp at work and I set
Is it possible/recommended to use background worker threads with the web browser control? I

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.