1.

Solve : How can i scan my computer for viruses using cmd.exe??

Answer»

thanksWhat anti-virus software do you RUN normally? Some come with command-line scanners.For example(again depending UPON whatever Anti-virus your using you can modify the code to run at startup, different intervals, etc.)

AVG Once-A-Month Interval Scan at startup:

Code: [Select]@echo off
cd "C:\PROGRAM Files\AVG\AVG9"
set curday=%DATE:~7,2%
set curmonth=%DATE:~4,2%
set curyear=%DATE:~10,4%
set scanfilelog=%curmonth%%curyear%
If not exist %scanfilelog%.log (
echo Scanned > %scanfilelog%.log
start /wait "avgscanx /COMP /HEUR /ARC /TRASH /QT /BOOT /PROC /REG /COO /ADS /SHUTDOWN"
) else (
echo Continue with startup
exit
)

Note: This is just an example.

If you have a different AntiVirus just check the Help guide, It should tell you about the CMD params.Quote from: evp.tooLock on May 26, 2010, 06:59:36 AM

thanks


C:\Program Files\Malwarebytes' Anti-Malware>dir mb*.*
VOLUME in drive C has no label.
Volume Serial Number is 304E-C1B1

Directory of C:\Program Files\Malwarebytes' Anti-Malware

01/07/2010 03:57 PM 59,241 mbam.chm
01/07/2010 05:07 PM 167,760 mbam.dll
01/07/2010 05:07 PM 1,394,000 mbam.exe
01/07/2010 05:07 PM 84,816 mbamext.dll
01/07/2010 05:07 PM 429,392 mbamgui.exe
01/07/2010 05:07 PM 236,368 mbamservice.exe
6 File(s) 2,371,577 bytes
0 Dir(s) 6,751,793,152 bytes free

C:\Program Files\Malwarebytes' Anti-Malware>mbam.exe

C:\Program Files\Malwarebytes' Anti-Malware>Hmmmm....Why'd you DIR your MBAM folder?Quote from: Carbon Dudeoxide on May 30, 2010, 09:21:03 AM
Hmmmm....Why'd you DIR your MBAM folder?

To clarify the procedure for people new to CMD.

How would Carbon suggest showing how to run mbam.exe from the command prompt?
Updates mbam, runs a quickscan, and only shows the results if something is found.
Code: [Select]%programfiles%\Malwarebytes' Anti-Malware /runupdate /quickscanterminate /fullauto
Quote from: BC_Programmer on May 30, 2010, 03:11:38 PM
Updates mbam, runs a quickscan, and only shows the results if something is found.
Code: [Select]%programfiles%\Malwarebytes' Anti-Malware /runupdate /quickscanterminate /fullauto
Wouldn't you NEED to enclose the path with quotes?Quote from: marvinengland on May 30, 2010, 10:28:50 AM
To clarify the procedure for people new to CMD.

How would Carbon suggest showing how to run mbam.exe from the command prompt?

Buffalo BillQuote from: Helpmeh on May 30, 2010, 06:54:18 PM
Wouldn't you need to enclose the path with quotes?

It would be a good measure on older OS's, but It's usually not required.Quote from: Helpmeh on May 30, 2010, 06:54:18 PM
Wouldn't you need to enclose the path with quotes?
crap, and include the exe name

Code: [Select]"%programfiles%\Malwarebytes' Anti-Malware\mbam.exe" /runupdate /quickscanterminate /fullauto


Discussion

No Comment Found