bpmb
Joined: 13 Sep 2009 Posts: 30
|
Posted: Thu Oct 08, 2009 6:58 pm Post subject: Copy Log files - not permitted |
|
|
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 )
Thanks! |
|