Sometimes it’s just great to have a command-line tool to do the work for you. I needed to create a scheduled antivirus scan of a specific directory on a machine but didn’t have the password to the unlock the config GUI for the antivirus client.
Rather than track down the security administrator and talking him out of the password I looked into the program folder and found vscanwin32.com. It’s Trend Micro’s command-line scanning tool and gave me a quick way to get the job done without breaking open the entire configuration. Here are the command-line options.
vscanwin32 [/|-option] Drive:[path[filename|@script]] [Drive:[path[filename]] ..]
option: /S - Scan all files in specified dir and all subdirs.
option: /C - Clean virus-infected files without any prompting.
option: /D - Delete virus-infected files without any prompting.
option: /B - Scan boot/partition area only.
option: /P - Scan hard disk partition only.
option: /NM - Do not scan memory.
option: /NB - Do not scan boot sector/partition area of disk.
option: /NC - Scan only, do not take any action on virus files.
option: /BK[+|-] - Clean virus infected files backup switch.
option: /P=path - Specifiy virus pattern path.
option: /P=file[;file…] - Specifiy virus pattern file(s).
option: /LAPPEND - Open LOG file with append mode.
option: /LR[=file] - Write standard report to the specified file.
Default name “report.log”.
option: /LD[=file] - Write detected files to the specified file.
Default name “detect.log”.
option: /LU[=file] - Write undetected files to the specified file.
Default name “undetect.log”.
option: /LC[=file] - Write clean results to the specified file.
Default name “clean.log”.
option: /LCF[=file] - Write clean fail results to the specified file.
Default name “cfail.log”.
option: /VER - Display the version information.
option: /I - Display more information about scanning results.
option: /NV - Only display the files without virus infected.
option: /CLEANALL - Scan and Clean the file until no virus found.
option: /HOSPITAL=path - Move the virus files to specified directory.
option: /DISKIMAGE[=drive] - Scan disk images. (with or without restoring)
option: /NZ - Do not scan zip files. (eg. PKZIP, ARJ)
option: /NLITE - Do not scan pklite files. (eg. PKLITE, LZEXE)
option: /NMICE - Do not scan softmice files.
option: /NMACRO - Do not scan macro files. (eg. DOC, XLS)
option: /NJAVA - Do not scan java files.
option: /NSCRIPT - Do not scan script files.
option: /NGENERIC - Do not use generic scan.
option: /ZIPACTION - Enable zip virus action in callback.
option: /ZIPBREAK - Enable zip virus break in callback.
option: /VSCHAR=n - Set Character environment type from n .
(1: Tranditional Chinese; 2:Japanese)
option: /VSZIP=n - Set decompress layer.
option: /ACTIVEACTION=n - Enable Active Action and set the ProjectID.
option: /VSTEMP=path - Set the default temporary path.
option: /VSEXT=file - Set/Add process extensions from file.
option: /VSEXEXT=file - Set/Add exclude process extensions from file.
option: /VIRUSNAME - List all detectable virus name. (n: # to read)
option: /UNICODESCAN - Scanning and cleaning with unicode files.
option: /Q - Disable all output message.
option: /RENAME - Rename virus-infected files without any prompting.
Now where is that security guy…
Post a Comment