this command works fine when i paste it into a command window that was opened as admin
for /f %x in ('wevtutil el') do wevtutil cl "%x"
but when i save this one liner as a batch file, right click on it and say to run as admin,
I get a quick command window that disappears but nothing has executed.
running win 8.1
(btw, that code is to clear all event logs)
for /f %x in ('wevtutil el') do wevtutil cl "%x"
but when i save this one liner as a batch file, right click on it and say to run as admin,
I get a quick command window that disappears but nothing has executed.
running win 8.1
(btw, that code is to clear all event logs)