Re: Backup the event viewer files via command line?

From: Miha Pihler (mihap-news_at_atlantis.si)
Date: 11/16/04


Date: Tue, 16 Nov 2004 16:18:52 +0100

Hi,

save the file as .vbs

Mike

"pithhelmet" <pithhelmet@discussions.microsoft.com> wrote in message
news:55B07DDF-B2CB-4CC8-9085-F25730349EA6@microsoft.com...
> Simple question... i think....
>
> i am looking at the cscript.exe
> and i grabbed a couple of the samples...
>
> but what do i save the filename as???
>
> I am trying the VB samples....
>
> thanks
> tony
>
>
>
>
> "Miha Pihler" wrote:
>
>> Hi,
>>
>> You can use one of these VBS scripts...
>>
>> Event Logs
>> http://www.microsoft.com/technet/scriptcenter/scripts/logs/eventlog/default.mspx
>>
>> I hope this helps,
>>
>> Mike
>>
>> "pithhelmet" <pithhelmet@discussions.microsoft.com> wrote in message
>> news:EFC0558E-5C84-4122-B4B7-C87FAAF36029@microsoft.com...
>> >
>> > Hi everyone -
>> >
>> > I need to backup the event viewer files via a command line...
>> >
>> > i will use run to kick it off - but i need to back them up first,
>> > then - i would also like to delete/truncate them
>> >
>> > is this possible...
>> >
>> > thanks
>> > tony
>> >
>>
>>
>>



Relevant Pages

  • Re: batch file command?
    ... I usually go with VBS ... ... Mike ... >> You can use another type of script that will remove all ... >> Delete All Files in a Folder ...
    (microsoft.public.windows.server.general)
  • Re: Proper way to write a conditional statement with ands
    ... Mike F ... > How would I translate this into VBS?? ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Clear IE history via script
    ... History by using our logoff scripts (VBS). ... Mike ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Calling external Subs and Functions
    ... As for the clunkiness of .wsc writing, I've looked it up and I see why you ... careful to design a good place for all my common VBS classes, ... write my "scripts" in text files.vbs, whereas I'll bet both you and the VBS ... documentation are assuming they're embedded in HTML or other documents. ...
    (microsoft.public.scripting.vbscript)
  • Re: VBS to EXE
    ... because vbs is a subset of the vb language. ... I have never, ever, heard anyone refer to VBScript as "Visual Basic Script". ... VBScript code itself is similarly free of a visual interface; ... saying I was not so much the developer of visual scripts, ...
    (microsoft.public.scripting.vbscript)

Loading