Anyone know of a cmd I could put into a VBscript that will open the event
viewer showing the system log?

Thanks

Re: cmd to open event viewer by D

D
Thu Jul 13 16:15:11 CDT 2006

In WinXP SP2 this works from a cmd dos box:

eventvwr.msc

But shows all logs. Does anyone know how to open just the System log, or
start eventvwr with the system log already selected?



"Jason" <someone@microsoft.com> wrote in message
news:eio$6VppGHA.2292@TK2MSFTNGP05.phx.gbl...
> Anyone know of a cmd I could put into a VBscript that will open the event
> viewer showing the system log?
>
> Thanks
>



Re: cmd to open event viewer by joseomjr

joseomjr
Fri Jul 14 00:47:20 CDT 2006

are you looking for something in particular in the system log. you
could view the content of it by using WMI and the Win32_NTLogEvent
class.


Jason wrote:
> Anyone know of a cmd I could put into a VBscript that will open the event
> viewer showing the system log?
>
> Thanks


Re: cmd to open event viewer by Dave

Dave
Sat Jul 15 08:59:45 CDT 2006

You might give this a go.

http://www.sysinternals.com/Utilities/PsLogList.html

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Jason" wrote:
| Anyone know of a cmd I could put into a VBscript that will open the event
| viewer showing the system log?
|
| Thanks
|
|



Re: cmd to open event viewer by brianjester

brianjester
Mon Jul 17 00:19:11 CDT 2006

Jason,

You could launch the eventviewer then send it the down arrow three
times like this:

'Launch Event Viewer, hit "Down" three times to System log - Brian
Jester
Dim WshShl
Set WshShl = WScript.CreateObject("WScript.Shell")
WshShl.Run "%systemroot%\system32\eventvwr.exe"
WScript.Sleep 1000
WshShl.SendKeys "{DOWN}"
WshShl.SendKeys "{DOWN}"
WshShl.SendKeys "{DOWN}"

It worked for me, although it's brute force...

Brian Jester