Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Event Viewer in Win 2K

Posted on 2002-05-14
7
Medium Priority
?
173 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
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…
Suggested Courses

604 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