I am wondering IF somewhere along the way, someone has written the necessary DOS code to create a batch file that would start not only a Though Scan, but deal with any viruses (on just my primary partition), and anything else that would need to be done to run completely unattended until the end of the scan, and leave a log someplace that would tell me if any viruses were found, their disposition, etc.,. The goal of this batch file would be for me to THEN figure out how to launch my backup software of my primary partition immediately after that, via a batch file, so that its backup file would be as virus free as can be had if it ever came to having to use its Restore function. Please just point me to where that batch post is. Thank you
There is a full command line version… in the paid antivirus.
i think it will be done through an a2it script but i dont think it is legal to do so.
any way i will try.
OK I certainly am willing to go that route considering what’s at stake, but first: over and above that there’s a command line, I have two questions, (1) can even with the command line, and I presume that what we’re talking about here is an MS-DOS batch file with ALL the various features re capabilities, but that in the XP OS is NOT literally the same set of available commands that were available back in the MS-DOS 3.3 days, but there’s enough of them available for me to accomplish my ultimate goal of launching 3 successive software programs in unattended succession, & (2) does a batch file already exist that does the Avast scan somewhere in the forum, etc., as to other locations. Thank you.
Why not schedule your custom profile? Can be done even in free version.
How to use the command-line scanner
This feature is only available in avast! Pro antivirus and avast! Internet Security.
The ashCmd program uses the same avast! scanning engine to detect potential malware infections so the results are exactly the same as running a scan via the normal program interface. The avast! command-line scanner, ashCmd.exe, is normally installed in the directory C:\Program Files\Alwil Software\avast5.
A scan is run from the command prompt using various switches and parameters. To see a description of the parameters, locate the ashCmd file and double click on it. This will open a new window in which the various parameters are displayed. A list of all the parameters can also be found here in the avast! Help.
To run a scan, go to the command prompt and change the directory to:
C:\Program Files\Alwil Software\avast5
Then type the program name ashCmd.exe followed by the area to be scanned and the appropriate parameters. For example, to scan all local hard drives, the command line would be:
ashCmd.exe /*
Additional parameters can be added as required. To scan a particular file, type the required path, making sure that any names containing spaces are enclosed in quotation marks (" ") e.g.
ashCmd.exe “C:\Program Files”
To run a particular scan, type the program name followed by /@=. For example, to run a scan called “Weekly scan”, the command line would be:
ashCmd.exe /@=“Weekly scan”
The scan will be run based on the parameters defined for the given scan. Any other parameters entered in the command line will be ignored.
When the scan is finished, the results can be output to a file using the parameter “/_ >” so, for example, the command line:
ashCmd.exe C:\Windows /_ > results.txt
would result in the path C:\Windows being scanned and the results of the scan being saved in a new file called results.txt
Parameters and Switches
Example: “C:\Program files” /p /u=virus@avast.com --soundoff /v=“key kapt”
d:\path
This parameter specifies the drive and directory that should be tested. If the parameter is not given, the files in the root directory of the current drive are scanned. It is possible to specify more drives simultaneously.
d:\path\file
When the full pathname of a file is given, ashCmd only this one file is scanned. The file must exist!
/H or /? (or --help)
Prints brief help and a list of possible switches.
/# (or --remote)
Scans remote disks.
/* (or --local)
Scans local hard disks.
/_ (or --console)
The application will be ready for STDIN/STDOUT. All the output will be redirected to the standard output (STDOUT). It means that the output can be processed using various UNIX-style command-line tools.
/A (or --testall)
Tests all files.
/@= (or --task)
Starts a particular avast! scan. All the other parameters are ignored. If the scan name contains any spaces, it must be enclosed in quotes.
/C (or --testfull)
Switches on scanning of whole files. By default, only the important parts of the files are tested, which is much faster. When any virus is found, the program switches to scanning the whole files automatically.
/D (or --dontpanic)
Tells avast! that it should not switch to “panic mode” when an infected file is found. Panic mode means, the sensitivity is automatically increased to the maximum.
/E= (or --heuristics)
Sets the heuristic sensitivity of the scan. The value can be in the range 0 - 100, where “0” means disabled and “100” is the maximum heuristic sensitivity.
/F= (or --fileactions)
Tells avast! how to process infected files, e.g.
B = allow delayed actions (after reboot) for locked files.
P = if a file cannot be removed from an archive, try to remove the parent archive
S = do not remove associated auto-start references when removing a file
W = if an infected file is found inside an archive, apply the action to the whole archive, not just the infected file.
/G= (or --checkgenuine)
This tells avast! to check the digital signatures of suspicious files and what to do if the signature is from a trusted source. The value can be “0” (which means all files will be reported) or “1” (to not report files with digital signatures from trusted publishers)
/I (or --ignoretype)
Switches on searching for all viruses in all files (i.e. boot viruses will be looked for even in .exe files etc.).
/J (or --paging)
Pages the lines if the program is not in STDOUT mode (i.e. stops after each full page of results).
/M (or --boot)
Tests boot sectors and the operating memory.
/P (or --continue)
This switch specifies that the program will run without any delays after checking the disk system areas and without waiting for user interaction when a virus is found. To check the result of the scan, you can use predefined return codes, or information stored in a report file. To specify an automatic action with the infected files, use /P=[1234], where 1 = delete file, 2 = move to Chest, 3 = repair, 4 = stop.
/R=[] [file name] (or --report)
This switch specifies that a text file will be created with a list of viruses found and a summary table (report file). If the file name is not given, ashCmd.rpt in the current directory is used for the output. When the switch /R is followed by the "" character, all the scanned files will be written to the report file (even those where no virus was detected).
/S (or --soundoff)
This switch turns off the virus sound alert. By default, any virus found is announced by a beep.
/U= (or --sendmessage)
If a virus is found, a warning message is sent to the given address.
/T=[JZIMXRSTGCBWOEQHFVKPY7D6U123AN] (or --archivetype)
Specifies the type of archives to scan (J:ARJ, Z:ZIP, I:MIME, M:MAPI, X:Exec, R:RAR, S:Streams, T:TAR, G:GZ, C:CAB, B:BZIP2, W:WinExec, O:ZOO, E:ACE, Q:ARC, H:LHA, F:TNEF, V:CPIO, K:CHM, P:RPM, Y:ISO, 7:7ZIP, D:DBX, 6:SIS, U:OLE, 1:Installer, 2:Dropper, 3:Emulator, A:All, N:none).
/X= (or --virustypes)
Sets specific malware types that should be detected (types not detected by default)
P = PUPs (Potentially Unwanted Programs)
What an idea,
maybe the what you need is just in front of you but you cant see him.
I’ve got a sneaking suspicion that the OP is using avast 4.8 given his comment/topic title about a thorough scan, a tern/scan not in avast 5.
I’m fairly sure that you can believe me what I state that I NEVER (as in EVER) noticed this feature BEFORE. Yes, and it will solve my batch code struggle with a very simple solution of scheduling one for about midnight (when all my PC work is sure to have ceased), daily, having it shut the PC done too. Well thanks to you, I have found my solution, as well thanks to everyone who participated in this topic. I will start today with this feature, and hopefully, it will work as I expect it will, especially IF I pay more attention to Avast than I have previously.
I was using this in 4.8 but have not setup yet since upgrading to 5.0
Can i use a command line to run a “custom scan” that I have setup in the UI?
I am using the free version,
cheers.
EDIT: don’t worry, i can see the Schedule in the GUI…well thank good its friday…
There’s no command-line scanner in the Free version, so the answer is no; you have to run/schedule it from the GUI.
Cheers Igor…
not a problem I will just setup Avast scans thru the GUI schedule.
Does anyone use another AV for on-demand scanning?? or are you just happy to use Avast for that…
(so should I use a 2nd AV for on-demand scanning or do you feel its a waste of time)
I was thinking of using Avira or a-squared for preiodic on-demand scanning…
I particularly think it’s a waste of time and resources, I mean, a second full antivirus.
I would do on line scanning.
Avira could be only on demand if you are patient enough with their weird updates and popups.
a-squared is well known for tons of false positives.
I suggest MBAM as on-demand only.
ditto…
no problems then I’ll just use the GUI schedule feature…
I particularly think it’s a waste of time and resources, I mean, a second full antivirus.
I would do on line scanning.Avira could be only on demand if you are patient enough with their weird updates and popups.
a-squared is well known for tons of false positives.
I suggest MBAM as on-demand only.
hi tech,
I have DSL 256 connection, cap of 3GB then charged excess…roughly 30+ workstations
Do online scanners use alot of bandwidth?? I do not think online scanners are suitable for my environment.
I just want something else as a backup scanner…I have Mbam on my own workstation (is this more for internet browsers?) Only a handful of staff are allowed Proxy server access all other staff are blocked (because 3GB a month is easily chewed up). Staff do however bring their evil USB devices from other govt departs or home…and they are always sending/receiving out them bloody chain-letters…
roughly 30+ workstations…
Staff do however bring their evil USB devices from other govt departs or home…and they are always sending/receiving out them bloody chain-letters…
Are you using avast free? ???
yes, avast free… ;D
our firm cannot afford purchase AV…SBS 2008 already broke our budget…
Plus my CEO would prefer using the free version…
I harden my LAn/gateway with Endian Firewall - no open ports, use squid proxy (handful of users).
All workstations, Comodo FW free, Avast free (before I started the old IT dude had a Cracked version of NOD and it wasn’t even up-to-date! He even had NT4 as the PDC and 2 win2000 memberservers all 3 were malwared out)
I have cleaned up a lot of the old workstations…and brought our environment upto 2008 domain…pity thou I wished I just used a linux server instead (I am slowly moving to Linux - stuff windows and commerical software Open source is the way…but I am still fairly new to linux), but I have 2008 now so might as well use it…
I heard that Avast free performs better then the pro version anyway (in this forum), i just let comodo FW and Avast free is secure enough (isn’t it??)
This is why I want to cache the free updates…it can be done within IPcop so should be capable in Endian too (i am using community version so will need to figure this out myself, no one in this forum or Endian has provided a solution…yet)…
:
Hi tech,
I am aware I am not suppose to use the free version in a domain environment…are you trying to tell me to stop using it?
The software allows myself to install it, so I do.