There is an easy way to create the file.
by pdmckplus1 - 11/20/11 12:47 PM
In Reply to: You vs. Me? by S13013E
If you use the command "wevtutil el>ClearAllWindows7EventLogsCommandFile.txt" it will create a list of all of the log files that are currently on your computer (and they vary according to what is loaded on the box). Then use a text editor that can search and replace on the end-of-line/paragraph character and replace it with a quote character followed by the end-of-line/paragraph character and "wevtutil.exe cl " and a closing quote character (in MS Word it would look like "^pwevtutil.exe cl ". That puts quotes around all of the log names and adds the command to clear the log in front. You do have to manually add the command to the first line of the the list. Then just rename it as a .cmd file and your good to go. Thanks for the idea though, saved me a hoop of time clearing the dang logs.


Moderator
CNET Staff
Samsung Staff
Dell Staff