Hi,
I am trying to execute this command from cmd when a button is clicked:

Code:
wevtutil qe system "/q:*[System [(Level=2)]]" /f:text /c:5 /rd:True
The problem is that I can't execute it successfully due to the presence of the Quotations in the cmd line of code itself.

The code in Visual Studio looks somewhat like this:

Code:
Shell("cmd /c wevtutil qe system " /q:*[System [(Level=2)]]"/f:text /c:5 /rd:true >C:\Last5.txt", vbHide)
I'd really appreciate the help with this, please.

Thanks in advance...