Solved

Event Viewer in Win 2K

Posted on 2002-05-14
7
166 Views
Last Modified: 2010-05-02
Hiya folks

I am trying to find out if there is a way to clear the System Event Log in the event viewer via VB, I am using VB 6 and do not have much knowledge of VB.

What I would like to do is create an EXE file that I can put on my desktop that when clicked will clear the Event Log for me.  It is really just a shortcut.

Any help greatly appreciated.

I will award 100 points but if anyone out there thinks it should be worth more because of the technical side of it please advise
0
Comment
Question by:fx124
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 4

Expert Comment

by:trkcorp
ID: 7009643
Hmm, never done anything like that but here is a link that might get you started:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskClearingEventLogs.asp
0
 
LVL 4

Expert Comment

by:trkcorp
ID: 7009652
0
 

Author Comment

by:fx124
ID: 7012294
trkcorp

Thanks for the above links but I can't seem to get them to work.  I am pasting the relevant code into a form and it is coming up with errors.  It doesn't even recognise EventLog and will not compile.

Anymore help appreciated
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 49

Expert Comment

by:DanRollins
ID: 7765476
Hi fx124,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept trkcorp's comment(s) as an answer.

fx124, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Author Comment

by:fx124
ID: 7768398
Yes, I had forgotten about the question but if you read my last post it actually wasn't answered.

I have since figured out what to do but none of the above are answers

What should I do regarding points, etc??
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7772303
fx124,
When you solve a problem yourself, here is what you should do:
1) Post a comment in the question, stating that you would like a refund of your points becasue you solved it yourself.  

IMPORTANT: Describe what you did to solve the problem.  Your answer will help people who search in EE for to locate answers of similar questions.

2) Create a 0-pt question in Community Support.  Ask for a refund of points.  Be sure to provide a link to the question's URL.

-- Dan
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7838045
PAQ'd and points refunded

fx124,
Dan is correct in the steps you should take to ask for a refund.  Thanks Dan for helping out.  I would ask that if you remember what you did to resolve this that you come back here and post your resolution like Dan mentioned so it might help somebody else experiencing the same problem.  Thank you.  You can always check your opened questions by clicking the link with your login name on it and look for any questions with a status of UnlockedQ.  I see you have another old question that could be finalized.  Please help keep Experts Exchange clean.  If you have further questions on how to take care of these questions, post here and we will help you.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now