Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Help 

Having issues with a batch script (Variables)

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:

Code
wmic /node:localhost /namespace:\\root\SecurityCenter2 path AntiVirusProduct Get DisplayName |findstr /V /B /C:displayName> Antivirus.txt || echo None > Antivirus.txt

It's been a while since I have really messed around with batch, any recommendations would be appreciated.
(wmic /node:localhost /namespace:\\root\SecurityCenter2 path AntiVirusProduct Get DisplayName | findstr /V /B /C:displayName || echo None) > Antivirus.txt
[Image: bitcoin.png] Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP


Possibly Related Threads...
Thread / Author Replies Views Last Post
[The Academy] by padrinoJun 14, 2025 02:42 AM 1 196 Jun 14, 2025 02:42 AM
Last Post: Bastille
by HackersFeb 5, 2025 05:43 PM 2 112 Feb 5, 2025 05:43 PM
Last Post: DarkVision
by VertyDaGeniusMay 7, 2023 05:40 PM 2 103 May 7, 2023 05:40 PM
Last Post: Laughing Man