Solved

Event Viewer in Win 2K

Posted on 2002-05-14
7
168 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
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

810 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