Trying to save the output of this batch script as a variable as well as go to a text file.
I have gotten it to save to a text file, but I am just having no luck saving as a variable.
This is the code I am using:
It's been a while since I have really messed around with batch, any recommendations would be appreciated.
I have gotten it to save to a text file, but I am just having no luck saving as a variable.
This is the code I am using:
Code
wmic /node:localhost /namespace:\\root\SecurityCenter2 path AntiVirusProduct Get DisplayName |findstr /V /B /C:displayName> Antivirus.txt || echo None > Antivirus.txtIt's been a while since I have really messed around with batch, any recommendations would be appreciated.


