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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:49:13+00:00 2026-06-10T18:49:13+00:00

I am running the following batch script: @echo off tasklist /nh /fi Windowtitle eq

  • 0

I am running the following batch script:

@echo off
tasklist /nh /fi "Windowtitle eq Export to PDF - DOORS" | find /i "Export to PDF - DOORS" >nul && (
echo PDF is running
) || (
echo PDF is not running
)

This only echos “PDF is running” if the window is currently active. Perhaps I am using the wrong command (tasklist). Is there a way to find in the full list of open windows?

  • 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-10T18:49:14+00:00Added an answer on June 10, 2026 at 6:49 pm

    I was able to get what I needed with a VB Script (Thanks @JoshGuzman for the idea):

    Set Word = CreateObject("Word.Application")
    Set Tasks = Word.Tasks
    
    For Each Task in Tasks
      If Task.Visible Then
        If Task.name = "Export to PDF - DOORS" Then
          Wscript.Echo "PDF is Running"
        Else 
          Wscript.Echo "PDF is not Running"
        End If
      End If
    Next
    
    Word.Quit
    

    Then call the VB script with wscript myScript.vbs from the command prompt or a batch file.

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

Sidebar

Related Questions

Running the following example batch file, echo foo &&^ C:Program FilesInternet Exploreriexplore.exe ...produces the
I have the following few lines in a batch file: @echo off echo Running
When running a batch import script in Python (openblock), I'm getting the following invalid
I have a batch file using the following code: @echo off :: BatchGotAdmin :-------------------------------------
I have a Windows batch script (my.bat) which has the following line: DTBookMonitor.exe 2>&1
How to hide cmd window while running a batch file? I use the following
I am running following code to create bmp image from pdf using Ghost4j i
I am running following query in SQL*Plus CREATE TABLE tbl_audit_trail ( id NUMBER(11) NOT
Running the following line in my script gives me a Permission denied error: $config_out
I'm running a script from the command line via R CMD BATCH script.in.R script.out.R

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.