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
Solved

Event Viewer in Win 2K

Posted on 2002-05-14
7
169 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using "ScreenUpdating" 6 73
Spell Check in VB6 13 126
Macro Excel - Multiple If conditions 2 81
Problem to line 23 53
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

791 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