clearing ALL the event logs

bwanaaa

Senior member
Dec 26, 2002
739
1
81
tried this
http://mikebeach.org/2012/04/23/how-to-delete-all-windows-event-logs-at-once/

but having a problem.
this wont work when I save the one liner as a bat file or a cmd file. The command window appears and disappears rapidly when I right click on the bat file and ask it to run as admin. Even when I open a command window as admin and type in the name of the bat file I get nothing-just two prompts.
but pasting the code works??
 

bwanaaa

Senior member
Dec 26, 2002
739
1
81
It's the same as the one I used except it's not a one-liner. I'm using win 8.1