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 8316901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:27:45+00:00 2026-06-08T21:27:45+00:00

OS: Windows XP, Windows 7 64bit. We have some fairly hefty cmd scripts that

  • 0

OS: Windows XP, Windows 7 64bit.

We have some fairly hefty cmd scripts that are used for some daily build processes. These scripts spawn numerous other (windowed) processes. There is one controlling cmd script, a small simple script, which starts the main cmd script. The purpose of the small controlling script is to clean up in situations where the main script or any of its children fail. This is accomplished fairly easily: the main script and all its children have window titles which begin with a unique identifier. When the controlling script determines that the main script and all its children should have completed, it uses tasklist to find windows of any hung processes, via:

tasklist.exe /FI “WINDOWTITLE eq UniqueIdentifier*”

This all worked very nicely in XP. Now enter Windows7 64-bit. Here, if the main .cmd script or any other .cmd shell window attempts to sets its window title via

title UniqueIdentifier Followed By Descriptive Text

Windows7 64-bit kindly prepends other text to the title (specifically, “Administrator: ” or similar). The prepended text cannot be relied upon. So now we want to use

tasklist.exe /FI "WINDOWTITLE eq *UniqueIdentifier*"

but THIS FAILS with the error message “The search filter cannot be recognized”. Going the route of using our UniqueIdentifier as a post-fix does not work: the command

tasklist.exe /FI "WINDOWTITLE eq *UniqueIdentifier"

also results in the same error message. It seems that Microsoft’s notion of “wildcard” in a filter does not extend beyond having a “*” as the terminal character. Ouch.

DOES ANYONE HAVE ANY WORK-AROUNDS? Pslist does not seem to allow filtering with window title.

  • 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-08T21:27:46+00:00Added an answer on June 8, 2026 at 9:27 pm

    You can use the /V option to include the window title in the output and then pipe the result to FIND (or FINDSTR) to filter the result.

    tasklist /v | find "UniqueIdentifier"
    tasklist /v | findstr /c:"UniqueIdentifier"
    

    If using FINDSTR then I recommend using the /C option so that you can include spaces in the search string.

    You might want to use the /I option if you need to do a case insensitive search.

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

Sidebar

Related Questions

I have some older code that doesn't appear to work on 64bit Windows 7.
We have a 64bit C#/.Net3.0 application that runs on a 64bit Windows server. From
I have some customers/candidate who complained that my program doesn't work on their Windows
I have the following scenario: - 64bit Windows Server 2008. - 32bit .NET application
I have two websites running on the same Windows 2008r2 64bit server, SQL Server
I have several programs I want to uninstall from my computer (Windows 7 64bit).
I have two installations of Windows 7. a 64bit version on my hard disk,
I have 3 build machines. One running on windows 2000, one with XP SP3
I have some problem with my java application, I did build it with Eclipse
Very strange question but I have some legacy code that interacts with another application

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.