Re: Looking for a script or a program to keep outlook running at all times....

Tech-Archive recommends: Fix windows errors by optimizing your registry



hi Fosco,

I'm not here to defend wmi, it is a bit awkward to use
and never seems to have the property you are looking for.
It's apparently something only a sysadmin can love.

However, you are suggesting the O.P. download and register
the autoit3 ocx, just to avoid an extra two lines of code
(that I already coded for him).

That is, using this (three lines):
for each Process in oWMI.InstancesOf("Win32_Process")
if (Process.Name = sOutlook) then Exit Sub
next

Instead of your (one line):

If ProcessExists("notepad.exe") Then

You have to admit that saving two lines of code is a
marginal gain at best.

And finally, if I really _did_ know how to use wmi,
I could have done-it-all using one line. Something
like: (sql) select-case-where-process-name-is-outlook.

cheers,jw

Fosco wrote:
"mr_unreliable"
Also, "fosco" is not accurate in saying that you need autoit3
to determine if the outlook process exists. You could also
use microsoft's wmi (if you have it). If you _don't_ have it,
then you can download it from microsoft (for free).

I use win98 too .. and I HATE wmi :-)

autoit3 >> 1 line code :

If ProcessExists("notepad.exe") Then


--
Fosco


.



Relevant Pages

  • Re: SP2 and Norton Antivirus
    ... I received my WMI update for NAV 2003 through Autoupdate this morning. ... >>How do you download the WMI patch if you don't have NAV 2004? ... >>>I do have Norton 2003. ...
    (microsoft.public.windowsxp.general)
  • Re: Norton WMI will not install
    ... > update does download. ... It just does not install. ... > seems that since it does downlod but does not install, it would be a SP2, WMI ... I get no real help from Symantec...only repeated ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Norton WMI will not install
    ... I now have LiveUpdate in the exceptions list. ... still download and my virus definitions are up to date. ... BUT, even though WMI ...
    (microsoft.public.windowsxp.security_admin)
  • Re: SP2 vs. Norton AntiVirus
    ... however I can download it using LiveUpdate ... but when it tries to install the WMI it fails with "LU1806 error when ... installing Norton WMI update". ... > Norton WMI Update and once it is installed, ...
    (microsoft.public.windowsxp.general)
  • VB.Net & WMI System.Management in VB 2005 Express Ed. Beta
    ... downloaded the Express Edition Beta of Visual Basic 2005 to see how ... System.Management namespace. ... This is on a Windows 2000 PC with various WMI tools and scripts on ... download for something I've missed? ...
    (microsoft.public.dotnet.languages.vb)