🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7601

Re: Test if Excel.exe is running

#7601
From: Vladimir Afanasyev
Date: Fri, 14 Jan 2005 10:08
14 lines
1368 bytes
Hi,

"Salvador Huertas" <none@none> wrote:
>I would like test if the Excel.exe it's running and if so, how can I 
>shutdown the process "Excel.exe"?.
>

For Windows 2000/XP uou can use WMI.
WMI is native for this OS.
See my "Let us try WMI (samples)" in codecentral (Samples 4 and 5):
http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=19443

Vladimir
Technical Details
Message-ID: <41e79a31$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41e6cd7f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1a8449601b080db4
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Subject: Re: Test if Excel.exe is running
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 83.218.237.46     
X-Forwarded-For: unknown
References:  <41e6cd7f@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <41e79a31$1@newsgroups.borland.com>
Date: 14 Jan 2005 02:08:49 -0800
X-Trace: newsgroups.borland.com 1105697329 207.105.83.66 (14 Jan 2005 02:08:49 -0800)
Lines: 14
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail