AutoHotkey Community

It is currently May 27th, 2012, 12:05 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: October 8th, 2009, 7:58 pm 
Offline

Joined: September 13th, 2009, 2:34 pm
Posts: 30
Hi there!

I'm trying to copy all the Log files in %A_WinDir%\System32\winevt\Logs to a temporary folder which contains additional information about the computer. I can't get this to work, this is the syntax:

Code:
FileCopyDir, %A_WinDir%\System32\winevt\Logs, C:\tmp\Logs, 1


I can see the ErrorLevel returns 1 and the copy is never done. I'm guessing this has to do with permissions eventhough I added this line at the top:
Code:
if not A_IsAdmin
{
DllCall("shell32\ShellExecuteA", uint, 0, str, "RunAs", str, A_ScriptFullPath
, str,0, str, A_WorkingDir, int, 1)
ExitApp
}


Does anyone know how to copy this folder? I'm testing this on Win 7 and Vista by the way..

I'm collecting this folder in order to support systems I build so I can quickly gather as much info as possible. If anyone knows a better way of collecting log files I'm all ears (or eyes :shock: )

Thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 8th, 2009, 8:26 pm 
Offline

Joined: October 2nd, 2009, 12:22 am
Posts: 55
Location: PA
Just a complete stab in the dark here, but I know that many have posted issues in vista especially where ahk needed to be run as admin. If that is an option perhaps that would give better results?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, Google [Bot], Leef_me, XstatyK, Yahoo [Bot] and 14 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group