Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The amount of weight an evangelist carries with the almighty is measured in billigrahams.


computers / alt.windows7.general / Re: Detecting a Running Application

SubjectAuthor
* Detecting a Running ApplicationDavid E. Ross
+* Re: Detecting a Running ApplicationDanS
|`* Re: Detecting a Running ApplicationStan Brown
| `- Re: Detecting a Running ApplicationDanS
+* Re: Detecting a Running ApplicationZaidy036
|`* Re: Detecting a Running ApplicationDavid E. Ross
| `* Re: Detecting a Running ApplicationZaidy036
|  `- Re: Detecting a Running ApplicationZaidy036
`* Re: Detecting a Running ApplicationMayayana
 `* Re: Detecting a Running ApplicationDavid E. Ross
  +- Re: Detecting a Running ApplicationMayayana
  `- Re: Detecting a Running ApplicationApd

1
Detecting a Running Application

<sit6cv$kl3$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2581&group=alt.windows7.general#2581

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!aioe.org!3Mhv7/5wGMalT5I1PrEuIA.user.46.165.242.75.POSTED!not-for-mail
From: not_me@not_there.invalid (David E. Ross)
Newsgroups: alt.windows7.general
Subject: Detecting a Running Application
Date: Mon, 27 Sep 2021 12:34:55 -0700
Organization: I am @ david at rossde dot com.
Message-ID: <sit6cv$kl3$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="21155"; posting-host="3Mhv7/5wGMalT5I1PrEuIA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.9.1
X-Antivirus: AVG (VPS 210927-4, 9/27/2021), Outbound message
X-Antivirus-Status: Clean
Content-Language: en-US
X-Mozilla-News-Host: snews://nntp.aioe.org:563
X-Notice: Filtered by postfilter v. 0.9.2
 by: David E. Ross - Mon, 27 Sep 2021 19:34 UTC

Is there a command line method for detecting whether a given application
is running? How about detecting an application's PID (process ID) and
then checking to see if that PID is still running?

--
David E. Ross
"A Message to Those Who Are Not Vaccinated"
See my <http://www.rossde.com/index.html#vaccine>.

Re: Detecting a Running Application

<XnsADB2A36C410DEthisnthatroadrunnern@216.166.97.131>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2583&group=alt.windows7.general#2583

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 27 Sep 2021 15:03:55 -0500
Newsgroups: alt.windows7.general
Subject: Re: Detecting a Running Application
From: t.h.i.s.n.t.h.a.t@r.o.a.d.r.u.n.n.e.r.c.o.m (DanS)
References: <sit6cv$kl3$1@gioia.aioe.org>
Organization: Disorganized
Message-ID: <XnsADB2A36C410DEthisnthatroadrunnern@216.166.97.131>
User-Agent: Xnews/2006.08.24
Date: Mon, 27 Sep 2021 15:03:55 -0500
Lines: 16
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-rzRoXGjUjCVmCsyv/6Gv4v8/UHS2uTfbsNCYOHu8vYoiw5QQUianWDq5pPJ0bqvExVUEvxwsmazl9cw!SXEEouCivRTa72w2lvCxeKaEgWCSgg40zgCBctxQPaUalb4L8BG7Xf+RG3B0uNMDb7hcvEvJPF9W!eX5Lf3B6tA==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1577
 by: DanS - Mon, 27 Sep 2021 20:03 UTC

"David E. Ross" <not_me@not_there.invalid> wrote in
news:sit6cv$kl3$1@gioia.aioe.org:

> Is there a command line method for detecting whether a
> given application is running? How about detecting an
> application's PID (process ID) and then checking to see if
> that PID is still running?
>

wmic process brief will list all processes w/IDs.

the cmd.exe 'batch' language is super sucky though, for parsing command line
responses.

How you'd get further than than that, as in monitoring a specfifc process, I don't know
(using the CMD 'batch' 'language').

Re: Detecting a Running Application

<MPG.3bbbced874e050ef98fe1f@news.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2585&group=alt.windows7.general#2585

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: the_stan_brown@fastmail.fm (Stan Brown)
Newsgroups: alt.windows7.general
Subject: Re: Detecting a Running Application
Date: Mon, 27 Sep 2021 13:52:15 -0700
Organization: Oak Road Systems
Lines: 33
Message-ID: <MPG.3bbbced874e050ef98fe1f@news.individual.net>
References: <sit6cv$kl3$1@gioia.aioe.org> <XnsADB2A36C410DEthisnthatroadrunnern@216.166.97.131>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 7R6BdPwhtIFGtRsk25rl1QDYbQSpJ99msfCgbeIQDxWWw8P+N3
Cancel-Lock: sha1:sFu740ENVlBECUFiNcTMHziR4e8=
User-Agent: MicroPlanet-Gravity/3.0.4
 by: Stan Brown - Mon, 27 Sep 2021 20:52 UTC

On Mon, 27 Sep 2021 15:03:55 -0500, DanS wrote:
> "David E. Ross" <not_me@not_there.invalid> wrote in
> news:sit6cv$kl3$1@gioia.aioe.org:
>
> > Is there a command line method for detecting whether a
> > given application is running? How about detecting an
> > application's PID (process ID) and then checking to see if
> > that PID is still running?
> >
>
> wmic process brief will list all processes w/IDs.

I get "ERROR: / Description = Invalid query". I think you meant

wmic process list brief

> the cmd.exe 'batch' language is super sucky though, for parsing command line
> responses.
>
> How you'd get further than than that, as in monitoring a specfifc process, I don't know
> (using the CMD 'batch' 'language').

There's a plain-text find command in Win 7:

wmic process list brief | find /i "gravity"

Administrative privilege is not needed, even to list a system
process.

--
Stan Brown, Tehachapi, California, USA https://BrownMath.com/
https://OakRoadSystems.com/
Shikata ga nai...

Re: Detecting a Running Application

<sitein$bfn$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2586&group=alt.windows7.general#2586

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Zaidy036@air.isp.spam (Zaidy036)
Newsgroups: alt.windows7.general
Subject: Re: Detecting a Running Application
Date: Mon, 27 Sep 2021 17:54:32 -0400
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <sitein$bfn$1@dont-email.me>
References: <sit6cv$kl3$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 27 Sep 2021 21:54:31 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="69387c813ccd5dc0c981d122b96c5700";
logging-data="11767"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18EZNCn/WFO6/9j6QswoHBj7XBpMolmhNI="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:LgIkNcC9KtP4S6JjXA7EjboYmH4=
In-Reply-To: <sit6cv$kl3$1@gioia.aioe.org>
Content-Language: en-US
 by: Zaidy036 - Mon, 27 Sep 2021 21:54 UTC

On 9/27/2021 3:34 PM, David E. Ross wrote:
> Is there a command line method for detecting whether a given application
> is running? How about detecting an application's PID (process ID) and
> then checking to see if that PID is still running?
>

use the following as example but check for exact name when it is running
by using TASKLIST in a CMD window:

TASKLIST | FIND "EXCEL" > NUL || GOTO <if EXCEL not running go here>
<do something because EXCEL is running>

Re: Detecting a Running Application

<sj4s6o$125u$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2601&group=alt.windows7.general#2601

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!aioe.org!3Mhv7/5wGMalT5I1PrEuIA.user.46.165.242.75.POSTED!not-for-mail
From: not_me@not_there.invalid (David E. Ross)
Newsgroups: alt.windows7.general
Subject: Re: Detecting a Running Application
Date: Thu, 30 Sep 2021 10:30:00 -0700
Organization: I am @ david at rossde dot com.
Message-ID: <sj4s6o$125u$1@gioia.aioe.org>
References: <sit6cv$kl3$1@gioia.aioe.org> <sitein$bfn$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="35006"; posting-host="3Mhv7/5wGMalT5I1PrEuIA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.9.1
X-Antivirus: AVG (VPS 210930-4, 9/30/2021), Outbound message
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
X-Antivirus-Status: Clean
 by: David E. Ross - Thu, 30 Sep 2021 17:30 UTC

On 9/27/2021 2:54 PM, Zaidy036 wrote:
> On 9/27/2021 3:34 PM, David E. Ross wrote:
>> Is there a command line method for detecting whether a given application
>> is running? How about detecting an application's PID (process ID) and
>> then checking to see if that PID is still running?
>>
>
> use the following as example but check for exact name when it is running
> by using TASKLIST in a CMD window:
>
>
> TASKLIST | FIND "EXCEL" > NUL || GOTO <if EXCEL not running go here>
> <do something because EXCEL is running>
>

I understand what pipe (|) does. But what does double pipe (||) do?

--
David E. Ross
"A Message to Those Who Are Not Vaccinated"
See my <http://www.rossde.com/index.html#vaccine>.

Re: Detecting a Running Application

<sj52qj$b6c$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2610&group=alt.windows7.general#2610

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Zaidy036@air.isp.spam (Zaidy036)
Newsgroups: alt.windows7.general
Subject: Re: Detecting a Running Application
Date: Thu, 30 Sep 2021 15:22:59 -0400
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <sj52qj$b6c$1@dont-email.me>
References: <sit6cv$kl3$1@gioia.aioe.org> <sitein$bfn$1@dont-email.me>
<sj4s6o$125u$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 30 Sep 2021 19:22:59 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c91560c7eb9439501da39140b7771d04";
logging-data="11468"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19LXRGJg5aFqGfzsW21o8wfo/YkdC6K1Y0="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:BdmcjyNZT5vBED456dp8h/WEZqk=
In-Reply-To: <sj4s6o$125u$1@gioia.aioe.org>
Content-Language: en-US
 by: Zaidy036 - Thu, 30 Sep 2021 19:22 UTC

On 9/30/2021 1:30 PM, David E. Ross wrote:
> On 9/27/2021 2:54 PM, Zaidy036 wrote:
>> On 9/27/2021 3:34 PM, David E. Ross wrote:
>>> Is there a command line method for detecting whether a given application
>>> is running? How about detecting an application's PID (process ID) and
>>> then checking to see if that PID is still running?
>>>
>>
>> use the following as example but check for exact name when it is running
>> by using TASKLIST in a CMD window:
>>
>>
>> TASKLIST | FIND "EXCEL" > NUL || GOTO <if EXCEL not running go here>
>> <do something because EXCEL is running>
>>
>
> I understand what pipe (|) does. But what does double pipe (||) do?
>

&& executes this command only if previous command's errorlevel is 0
or successful

|| executes this command only if previous command's errorlevel is NOT
0 or failed.

command1 && command2 || command3 May be used

Re: Detecting a Running Application

<sj539i$b6c$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2611&group=alt.windows7.general#2611

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Zaidy036@air.isp.spam (Zaidy036)
Newsgroups: alt.windows7.general
Subject: Re: Detecting a Running Application
Date: Thu, 30 Sep 2021 15:30:59 -0400
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <sj539i$b6c$2@dont-email.me>
References: <sit6cv$kl3$1@gioia.aioe.org> <sitein$bfn$1@dont-email.me>
<sj4s6o$125u$1@gioia.aioe.org> <sj52qj$b6c$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 30 Sep 2021 19:30:58 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c91560c7eb9439501da39140b7771d04";
logging-data="11468"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ncSivOURs0014ehX77glcJ6yikaTaej0="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:IfUpmI3e/9W0zH7FCx12l3kWJh4=
In-Reply-To: <sj52qj$b6c$1@dont-email.me>
Content-Language: en-US
 by: Zaidy036 - Thu, 30 Sep 2021 19:30 UTC

On 9/30/2021 3:22 PM, Zaidy036 wrote:
> On 9/30/2021 1:30 PM, David E. Ross wrote:
>> On 9/27/2021 2:54 PM, Zaidy036 wrote:
>>> On 9/27/2021 3:34 PM, David E. Ross wrote:
>>>> Is there a command line method for detecting whether a given
>>>> application
>>>> is running?  How about detecting an application's PID (process ID) and
>>>> then checking to see if that PID is still running?
>>>>
>>>
>>> use the following as example but check for exact name when it is running
>>> by using TASKLIST in a CMD window:
>>>
>>>
>>> TASKLIST | FIND "EXCEL" > NUL || GOTO <if EXCEL not running go here>
>>> <do something because EXCEL is running>
>>>
>>
>> I understand what pipe (|) does.  But what does double pipe (||) do?
>>
>
> &&    executes this command only if previous command's errorlevel is 0
> or successful
>
> ||    executes this command only if previous command's errorlevel is NOT
> 0 or failed.
>
>       command1 && command2 || command3 May be used

from https://ss64.com/nt/syntax-redirection.html

Re: Detecting a Running Application

<sj5b1l$63h$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2614&group=alt.windows7.general#2614

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mayayana@invalid.nospam (Mayayana)
Newsgroups: alt.windows7.general
Subject: Re: Detecting a Running Application
Date: Thu, 30 Sep 2021 17:41:52 -0400
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <sj5b1l$63h$1@dont-email.me>
References: <sit6cv$kl3$1@gioia.aioe.org>
Injection-Date: Thu, 30 Sep 2021 21:43:17 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d9a51a231fd7d12a1a561d995473848f";
logging-data="6257"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0fs9qIEyAFoLMXSZM+GLf35548CJG4+I="
Cancel-Lock: sha1:fiBWwWOyFFsyEFMTExQ/UeQIyUU=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
 by: Mayayana - Thu, 30 Sep 2021 21:41 UTC

"David E. Ross" <not_me@not_there.invalid> wrote
| Is there a command line method for detecting whether a given application
| is running? How about detecting an application's PID (process ID) and
| then checking to see if that PID is still running?
| Does it need to be command line? Sysinternals
process explorer will give you both.

Re: Detecting a Running Application

<sj5d1n$7uk$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2616&group=alt.windows7.general#2616

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!aioe.org!3Mhv7/5wGMalT5I1PrEuIA.user.46.165.242.75.POSTED!not-for-mail
From: not_me@not_there.invalid (David E. Ross)
Newsgroups: alt.windows7.general
Subject: Re: Detecting a Running Application
Date: Thu, 30 Sep 2021 15:17:27 -0700
Organization: I am @ david at rossde dot com.
Message-ID: <sj5d1n$7uk$1@gioia.aioe.org>
References: <sit6cv$kl3$1@gioia.aioe.org> <sj5b1l$63h$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="8148"; posting-host="3Mhv7/5wGMalT5I1PrEuIA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.9.1
X-Antivirus-Status: Clean
X-Notice: Filtered by postfilter v. 0.9.2
X-Antivirus: AVG (VPS 210930-6, 9/30/2021), Outbound message
Content-Language: en-US
 by: David E. Ross - Thu, 30 Sep 2021 22:17 UTC

On 9/30/2021 2:41 PM, Mayayana wrote:
> "David E. Ross" <not_me@not_there.invalid> wrote
> | Is there a command line method for detecting whether a given application
> | is running? How about detecting an application's PID (process ID) and
> | then checking to see if that PID is still running?
> |
> Does it need to be command line? Sysinternals
> process explorer will give you both.

I wanted a command line method to incorporated into a DOS-type script.

--
David E. Ross
"A Message to Those Who Are Not Vaccinated"
See my <http://www.rossde.com/index.html#vaccine>.

Re: Detecting a Running Application

<sj5oga$i62$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2624&group=alt.windows7.general#2624

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mayayana@invalid.nospam (Mayayana)
Newsgroups: alt.windows7.general
Subject: Re: Detecting a Running Application
Date: Thu, 30 Sep 2021 21:31:31 -0400
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <sj5oga$i62$1@dont-email.me>
References: <sit6cv$kl3$1@gioia.aioe.org> <sj5b1l$63h$1@dont-email.me> <sj5d1n$7uk$1@gioia.aioe.org>
Injection-Date: Fri, 1 Oct 2021 01:32:58 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d659137fcd25d80843d53c3496c5b8d8";
logging-data="18626"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19g5V5p5dACx+dkMlSf4VVNyVKmB2OR3vw="
Cancel-Lock: sha1:F+jefgncsFxcZLu0JK9iA43a1wE=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
 by: Mayayana - Fri, 1 Oct 2021 01:31 UTC

"David E. Ross" <not_me@not_there.invalid> wrote

| > Does it need to be command line? Sysinternals
| > process explorer will give you both.
| | I wanted a command line method to incorporated into a DOS-type script.
|

I see. I've done a lot with WMI but I'm not familiar with
the commandline version, WMIC. In case it's of any use,
here's a short VBScript version that you might be able to
adapt to WMIC. It enumerates items in the Win32_Process
class. The list of available properties is vast but mostly useless.
(See the WMI help file.) There are also methods, like Terminate.
This sample just gets EXE path and PID. I've left an error trap
in the code because using WMI depends on 2 services --
Windows Management Instrumentation and DCOM Server Process
Launcher. If those are disabled WMI will not be accessible.
They could be disabled in some corporate settings. (I'd
disable them myself if it were not for the fact that I use
WMI. Aside from cheap system utilities, there's rarely any
reason for anyone to need WMI running and it's a potential
security risk. As is Power Shell.)

You might be able to run this via cscript, or run it and
return the data to your commandline, or maybe run it in
batch (via Power Shell?) if you can figure out the corresponding
syntax for that. But as I say, I don't have any experience
with those options. If you paste the following into Notepad
and save as a .vbs file you can see how it works.

'----begin VBS

On Error Resume Next
Dim WMI, S2, Col
Set WMI = GetObject("WinMgmts:")

If (Err.number <> 0) Then
MsgBox "Error creating WMI object. Error: " & Err.Number & " - " &
Err.Description
WScript.quit
End If

Set Col = WMI.ExecQuery("Select * from Win32_Process")
S2 = S2 & " Process Info:" & vbCrLf & vbCrLf
For Each Ob in Col
S2 = S2 & "Caption: " & Ob.Caption & vbCrLf
S2 = S2 & "ExecutablePath: " & Ob.ExecutablePath & vbCrLf
S2 = S2 & "ProcessID: " & Ob.ProcessID & vbCrLf &
"__________________________" & vbCrLf & vbCrLf
Next

Set Col = Nothing
Set WMI = Nothing

MsgBox S2

Re: Detecting a Running Application

<sj9h1n$7fd$1@apd.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2626&group=alt.windows7.general#2626

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!apd.eternal-september.org!.POSTED!not-for-mail
From: not@all.invalid (Apd)
Newsgroups: alt.windows7.general
Subject: Re: Detecting a Running Application
Date: Sat, 2 Oct 2021 12:48:32 +0100
Organization: ad hoc
Lines: 17
Message-ID: <sj9h1n$7fd$1@apd.eternal-september.org>
References: <sit6cv$kl3$1@gioia.aioe.org> <sj5b1l$63h$1@dont-email.me> <sj5d1n$7uk$1@gioia.aioe.org>
Injection-Date: Sat, 2 Oct 2021 11:50:15 -0000 (UTC)
Injection-Info: apd.eternal-september.org; posting-host="f331bb99ed3d76d4f204bde3a582d2ad";
logging-data="7661"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19AhYBoVxuKXatowsr4i2xw"
Cancel-Lock: sha1:Iqy6sLpGYT38+LIZZMUAU4M9FLI=
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-Priority: 3
X-MSMail-Priority: Normal
 by: Apd - Sat, 2 Oct 2021 11:48 UTC

"David E. Ross" wrote:
> On 9/30/2021 2:41 PM, Mayayana wrote:
>> "David E. Ross" wrote
>>| Is there a command line method for detecting whether a given application
>>| is running? How about detecting an application's PID (process ID) and
>>| then checking to see if that PID is still running?
>>
>> Does it need to be command line? Sysinternals
>> process explorer will give you both.
>
> I wanted a command line method to incorporated into a DOS-type script.

Sysinternals has a package of command line tools called PsTools. In
there is PsList which will list all processes, or individually by mame
or PID.

Re: Detecting a Running Application

<XnsADBDA74498A32thisnthatroadrunnern@216.166.97.131>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2698&group=alt.windows7.general#2698

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 08 Oct 2021 15:26:37 -0500
Newsgroups: alt.windows7.general
Subject: Re: Detecting a Running Application
From: t.h.i.s.n.t.h.a.t@r.o.a.d.r.u.n.n.e.r.c.o.m (DanS)
References: <sit6cv$kl3$1@gioia.aioe.org> <XnsADB2A36C410DEthisnthatroadrunnern@216.166.97.131> <MPG.3bbbced874e050ef98fe1f@news.individual.net>
Organization: Disorganized
Message-ID: <XnsADBDA74498A32thisnthatroadrunnern@216.166.97.131>
User-Agent: Xnews/2006.08.24
Date: Fri, 08 Oct 2021 15:26:38 -0500
Lines: 24
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-CEvSAeOSm+WUSEdvNPx5EPWLOyuffLDgh+wHJgCD8y9U+MS9RHNQyHRM/nL6YrThXh9juxh3C4tfzZ9!rTUMcx1Zif6ZawJ3vl/mZV+5jNrJDBOKTBjjnzCTxay96Jb2W0+b6+R1R4lhRtSR26Nqd3iow323!HoqlmSsCJg==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1798
 by: DanS - Fri, 8 Oct 2021 20:26 UTC

Stan Brown <the_stan_brown@fastmail.fm> wrote in
news:MPG.3bbbced874e050ef98fe1f@news.individual.net:

> On Mon, 27 Sep 2021 15:03:55 -0500, DanS wrote:
>> "David E. Ross" <not_me@not_there.invalid> wrote in
>> news:sit6cv$kl3$1@gioia.aioe.org:
>>
>> > Is there a command line method for detecting whether a
>> > given application is running? How about detecting an
>> > application's PID (process ID) and then checking to see
>> > if that PID is still running?
>> >
>>
>> wmic process brief will list all processes w/IDs.
>
> I get "ERROR: / Description = Invalid query". I think you
> meant
>
> wmic process list brief
>

Yes, you are correct...

I. Was not.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor