Solved

Event Viewer in Win 2K

Posted on 2002-05-14
7
171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
 

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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

695 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