Hi you all,
Here is a .BAT script that i build using Microsoft Defender Antivirus that you can invoce in SM Command Line Antivirus or in SM Spool Command Line file with "C:\virusscan.bat %FILEPATH"
you need to create 2 folders :
C:\Viruses\ to Store Infected files for future checking
C:\VirusReport\ to Store Debug Files
C:\virusscan.bat
echo # >> C:\VirusReport\ReportScanDebug%date:~6,4%%date:~3,2%%date:~0,2%.txt
echo # %time% >> C:\VirusReport\ReportScanDebug%date:~6,4%%date:~3,2%%date:~0,2%.txt
call "C:\program files\windows defender\mpcmdrun.exe" -Scan -ScanType 3 -File %1 -DisableRemediation >> C:\VirusReport\ReportScanDebug%date:~6,4%%date:~3,2%%date:~0,2%.txt
IF ERRORLEVEL 0 GOTO CLEAN
@REM echo Virus Found
move %1 C:\Viruses
echo # >> C:\VirusReport\ReportScanVirus%date:~6,4%%date:~3,2%%date:~0,2%.txt
echo #VIRUS - %time% - %1 >> C:\VirusReport\ReportScanVirus%date:~6,4%%date:~3,2%%date:~0,2%.txt
GOTO END
:CLEAN
@REM echo File Clean
echo #CLEAN - %time% - %1 >> C:\VirusReport\ReportScanClean%date:~6,4%%date:~3,2%%date:~0,2%.txt
:END