guyz i need some help :-[

please help me with the command line scanner. i have avast pro. but i dont know how to use it.
please help me how to use command line (ashcmd) step by step, im new about computers…

Why do you need it? Isn’t it simpler just to configure the Tasks to do any job?
But if you really want…

ashCmd Program

ashCmd program is used, just like avast!, to search for all types of viruses. ashCmd uses the same scanning kernel as avast!, so the scanning results are exactly the same. The only difference is the interface - ashCmd uses the command-line only, as opposed to the user-friendly avast!.

There are two modes of operation - you can work with ashCmd directly in the console (command line), or you can redirect its output to a file. This is done by the parameter “/>", so e.g. "ashCmd.exe c:\windows /> test.txt” will scan the folder C:\Windows and store the results to the test.txt file that will be created in the avast! installation directory.

ashCmd is controlled from the command line only, using various switches and parameters. The command line of ashCmd looks like this:

ashCmd /@= | []

If you want to start an avast! task, put its name after the “/@=” characters. If the task name contains any spaces, it must be enclosed in quotes. If you forget the quotes, the task will not be run! If you run an avast! task, all the other command-line parameters will be ignored.

If you don’t specify any task name, avast! will scan given areas. How the scanning will be performed is controlled by the other parameters.

Running scan can be interrupted by pressing the Escape key.

When the scanning is done, various useful information is printed, as e.g. the number of infected files. ashCmd also sets the return code - it can be tested either by some other program, or in a BAT file with the IF ERRORLEVEL command.

ashCmd 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, 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 scans this one file only. The file must exist!

/H or /? (or --help)
Prints brief help and the 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 in various UNIX-style command-line tools.

/A (or --testall)
Tests all files.

/@= (or --task)
Starts an avast! task of given name. All the other parameters are ignored. If the task name contains any spaces, it must be enclosed in quotes.

/C (or --testfull)
Switches scanning of whole files on. 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.

/I (or --ignoretype)
Switches searching for all viruses in all files on (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 the 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 output. When the switch /R is followed by the "
" character, all the scanned files will be written to the report file (even the ones where no virus was detected).

/S (or --soundoff)
This switch turns the virus sound alert off. 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.

/V=[first characters of the virus name] (or --viruslist)
The ashCmd program prints its current virus database (i.e. the list of viruses it can find) and terminates.

/T=[JZIMXRSTGCBWOEQHFVKPY7D6UAN1] (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, A:All, N:none).

ashCmd Return Codes

When the ashCmd program terminates, it returns a return code to the operating system. This code can later be tested either by some other program, or in a BAT file with the IF ERRORLEVEL command. The return code can have the following values:

0 - program terminated correctly, no virus was found.

1 - virus found.

1 - an error occurred during the scan.