AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Copy Windows Log files

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
bpmb



Joined: 13 Sep 2009
Posts: 30

PostPosted: Thu Nov 12, 2009 9:23 pm    Post subject: Copy Windows Log files Reply with quote

Hi you!

I'm trying to build a little utility which collects system information like hardware, software etc.. This is working fine.. What I'd also like to be able to do is copy all the windows log files and zip them up with the rest of the information.

I tried doing this using FileCopy and got the files allright but they were corrupted and couldn't be opened on another system..

I was looking for a way to use 'eventvwr.exe' to save all the log files but can't see an option to do something like that, it can only open a certain log file?

Does anyone know how to do this?
Back to top
View user's profile Send private message
Wingfat



Joined: 23 Aug 2004
Posts: 275
Location: East Bay, California USA

PostPosted: Thu Nov 12, 2009 9:47 pm    Post subject: Reply with quote

useing the event viewer you should be able to save the logs to a file.
then you can use AHK to take them all and put them in one text file if that is what you wanted.. or you could just zip them up yourself with the info you collected on the hardware and such.
_________________
----------------------------
Wingfool you fat! I mean, Wingfat you fool!
Line from Woody Allen's movie "What's Up Tiger Lilly?"
-----------------------------
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group