Re: monitor a group events
From: name (nospam_at_user.com)
Date: 11/24/04
- Next message: name: "Re: monitor a group events"
- Previous message: Bo Rong: "Re: monitor a group events"
- In reply to: Bo Rong: "Re: monitor a group events"
- Next in thread: name: "Re: monitor a group events"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Nov 2004 05:05:28 -0500
For instance the javascript date object
give clues, that MS wsh will output the 'correct'
sequence of montg|day|year anyway.
-------------
Given that you find HOW TO input into
the object date the proper parameters.
===========================
So go for the e.g. new Date()
and look for your heart.
---------------------
If you need hard cases look for Dr. Stockton (UK)
website ("all times are London").
---------------
"The way you put it in, they way it comes back".
"Bo Rong" <rong_bo@trendmicro.com.cn> wrote in message
news:Ot1rzwg0EHA.2060@TK2MSFTNGP10.phx.gbl...
> Thank you.
>
> But I can't find any solution.
>
> Could you give me a code fragment?
>
> "name" <nospam@user.com> wrote in message
> news:%235ZXblg0EHA.1564@TK2MSFTNGP09.phx.gbl...
> > "Microsoft Windows Script Technologies"
> >
> >
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vtoriMicrosoftWindowsScriptTechnologies.asp
> >
> >
> >
> >
> >
> >
> >
> >
> > "name" <nospam@user.com> wrote in message
> > news:u2zCBjg0EHA.1524@TK2MSFTNGP09.phx.gbl...
> > > "creation and deletion"
> > >
> > > Unless you delete a process, there will not be such event.
> > >
> > > ----------------------------------------------
> > >
> > >
> > > Processes go their way.
> > >
> > > --------------
> > >
> > > But this is not a definitive answer.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > "Bo Rong" <rong_bo@trendmicro.com.cn> wrote in message
> > > news:%23rlc4bg0EHA.2040@tk2msftngp13.phx.gbl...
> > > > Hi, Everyone,
> > > >
> > > > I hava a script to monitor process creatation.
> > > >
> > > > But I wonder how to monitor multiple events in a script such as
> process
> > > > creation and deletion.
> > > >
> > > > Any help would be appreciated.
> > > >
> > > > Thanks.
> > > >
> > > > // script
> > > > var com = ".";
> > > > var ns = "\\root\\cimv2"
> > > >
> > > > var service = GetObject( "winmgmts:\\\\" + com + ns );
> > > > var wql = "select * from __InstanceCreationEvent within 2 where
> > > > TargetInstance ISA 'Win32_Process'";
> > > >
> > > > while( true )
> > > > {
> > > > WScript.Echo( "Waiting for a new instance of win32 process to
> > > start..." );
> > > > var eventSrc = service.ExecNotificationQuery( wql );
> > > > var eventObj = eventSrc.NextEvent();
> > > > WScript.Echo( "A new instance of " + eventObj.TargetInstance.Name +
"
> > ("
> > > +
> > > > eventObj.TargetInstance.ExecutablePath + ") " + " was just
> started!" );
> > > > }
> > > >
> > > >
> > >
> >
>
>
- Next message: name: "Re: monitor a group events"
- Previous message: Bo Rong: "Re: monitor a group events"
- In reply to: Bo Rong: "Re: monitor a group events"
- Next in thread: name: "Re: monitor a group events"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|