WTF is wrong with me...
Have I lost all ability to write a proper batch command such as for /f ?
I'm looking to parse the result of:
wmic os get dataexecutionprevention_available
Which should come out as:
DataExecutionPrevention_Available
TRUE
So I wrote this command:
Have I gone lame? All I get from the CMD windows is a blinking cursor...
Have I lost all ability to write a proper batch command such as for /f ?
I'm looking to parse the result of:
wmic os get dataexecutionprevention_available
Which should come out as:
DataExecutionPrevention_Available
TRUE
So I wrote this command:
Code:
@echo off
for /f %%a in ('wmic OS get DataExecutionPrevention_Available /value^|find "DataExecutionPrevention_Available"') do set %%a
if "%DataExecutionPrevention_Available%" NEQ "TRUE" goto DEPno
echo.
echo DEP is available
echo.
goto end
:DEPno
echo DEP is NOT available
:end
Pause

Comment