Avast WEBforum

Consumer Products => Avast Free Antivirus / Premium Security (legacy Pro Antivirus, Internet Security, Premier) => Topic started by: Alphaz on May 11, 2008, 09:00:21 AM

Title: Command to run Avast automatically after download?
Post by: Alphaz on May 11, 2008, 09:00:21 AM
I am using "Free Download Manager" for downloading in Firefox. I would like to auotmatically invoke Avast (Free version) whenever a download completes. Any advise on the command that I can use to achieve it?
Title: Re: Command to run Avast automatically after download?
Post by: t1n0m3n on May 11, 2008, 10:28:35 AM
I use "C:\Program Files\Alwil Software\Avast4\ashQuick.exe %1"
Title: Re: Command to run Avast automatically after download?
Post by: DavidR on May 11, 2008, 02:35:04 PM
You should be able to get away without the %1 parameter unless that is a download manager requirement as avast doesn't need one.
Title: Re: Command to run Avast automatically after download?
Post by: Lisandro on May 12, 2008, 12:14:44 AM
I use Free Download Manager and it needs (not avast) the parameter:
%file%
Title: Re: Command to run Avast automatically after download?
Post by: Alphaz on May 12, 2008, 08:31:06 PM
I use Free Download Manager and it needs (not avast) the parameter:
%file%

I tested using "C:\Program Files\Alwil Software\Avast4\ashQuick.exe" & "%file%" in the argument textbox and all went well. Thanks so much for the kind advice and info.  :)
Title: Re: Command to run Avast automatically after download?
Post by: Lisandro on May 12, 2008, 11:19:50 PM
Thanks so much for the kind advice and info.  :)
You're welcome. Feel free to come back any time you need help or just to change experiences 8)
Title: Re: Command to run Avast automatically after download?
Post by: ady4um on May 19, 2008, 01:25:45 PM
The %file% parameter is a FDM's need, but I suppose it would be useful to know other optional command-line parameters that could fit the users of FDM.

Moreover, FDM includes a list of default antivirus software, with the option to manually add any other program or to change the defaults for that list. Other popular antivirus softwares, including free ones, are already in the list, but not Avast Home Edition.

As a suggestion to the Avast Support Team, it would be useful to get in contact with freedownloadmanager.org and suggest to their devs to add Avast Home Edition to the list of antivirus software for the next build of FDM, and give them all the ashquick.exe command-line appropriate options. This could be useful for users, but also could contribute to Avast! Home Edition popularity, being FDM free and under GNU Public License.
Title: Re: Command to run Avast automatically after download?
Post by: Lisandro on May 19, 2008, 04:18:11 PM
As a suggestion to the Avast Support Team, it would be useful to get in contact with freedownloadmanager.org and suggest to their devs to add Avast Home Edition to the list of antivirus software for the next build of FDM, and give them all the ashquick.exe command-line appropriate options. This could be useful for users, but also could contribute to Avast! Home Edition popularity, being FDM free and under GNU Public License.
I second this...
Title: Re: Command to run Avast automatically after download?
Post by: Sammo on June 09, 2008, 07:55:51 AM
I use Free Download Manager and it needs (not avast) the parameter:
%file%

I tested using "C:\Program Files\Alwil Software\Avast4\ashQuick.exe" & "%file%" in the argument textbox and all went well. Thanks so much for the kind advice and info.  :)
This setting will cause ashQuick.exe to crash every other download or so. I think FDM needs to update to work correctly with the latest avast.
Title: Re: Command to run Avast automatically after download?
Post by: Lisandro on June 11, 2008, 02:00:20 AM
This setting will cause ashQuick.exe to crash every other download or so. I think FDM needs to update to work correctly with the latest avast.
Hmmm... it works for me...
Title: Re: Command to run Avast automatically after download?
Post by: Sammo on June 11, 2008, 02:42:07 AM
This setting will cause ashQuick.exe to crash every other download or so. I think FDM needs to update to work correctly with the latest avast.
Hmmm... it works for me...

I also tried Orbit Downloader and it crashes ashQuick.exe as well.  ???
Title: Re: Command to run Avast automatically after download?
Post by: Lisandro on June 11, 2008, 05:03:55 AM
I also tried Orbit Downloader and it crashes ashQuick.exe as well.  ???
What's the error message?
Can you try to repair your avast installation?
Go to Control Panel > Add/Remove programs > avast! antivirus > Remove. Then choose Repair function in the popup window (Repair).
If this does not help, can you uninstall / boot / install / boot again?
Title: Re: Command to run Avast automatically after download?
Post by: Sammo on June 11, 2008, 05:57:09 AM
I also tried Orbit Downloader and it crashes ashQuick.exe as well.  ???
What's the error message?
Can you try to repair your avast installation?
Go to Control Panel > Add/Remove programs > avast! antivirus > Remove. Then choose Repair function in the popup window (Repair).
If this does not help, can you uninstall / boot / install / boot again?
I did the repair and still no luck. See the attached file with the error report.
Title: Re: Command to run Avast automatically after download?
Post by: igor on June 11, 2008, 12:01:51 PM
The attached file doesn't contain any information about the error, it's just a list of loaded modules.
What if you run ashQuick.exe manually (e.g. as ashQuick.exe c:\windows, or ashQuick.exe c:\windows\notepad.exe) ?
Title: Re: Command to run Avast automatically after download?
Post by: Sammo on June 11, 2008, 07:49:01 PM
The attached file doesn't contain any information about the error, it's just a list of loaded modules.
What if you run ashQuick.exe manually (e.g. as ashQuick.exe c:\windows, or ashQuick.exe c:\windows\notepad.exe) ?

ashQuick.exe has never crashed when I run it manually. It also does not crash when using GetRight. It has only crashed when using Free Download Manager or Orbit Downloader.
Title: Re: Command to run Avast automatically after download?
Post by: Lisandro on June 12, 2008, 02:35:33 PM
ashQuick.exe has never crashed when I run it manually.
Ok.

It has only crashed when using Free Download Manager or Orbit Downloader.
Sometimes, more than one download manager at the same time could 'fight' for the file to be downloaded and the subsequent actions.
Title: Re: Command to run Avast automatically after download?
Post by: Sammo on June 12, 2008, 03:04:27 PM
Quote
Sometimes, more than one download manager at the same time could 'fight' for the file to be downloaded and the subsequent actions.
I had only one download manager installed at a time and ashQuick.exe still  crashes sometimes.
Title: Re: Command to run Avast automatically after download?
Post by: Lisandro on June 12, 2008, 08:57:46 PM
I had only one download manager installed at a time and ashQuick.exe still  crashes sometimes.
Maybe you could create a dump, download and run http://public.avast.com/~vlk/hangrep.exe. In the list of processes select ashQuick.exe and use the Save button. This generates a file which you can either send to his email address vlk (at) avast.com (if it's smaller than e.g. 1 MB, ZIPed), or upload to ftp://ftp.avast.com/incoming

The command-line version http://public.avast.com/~vlk/userdump.exe . The syntax is
userdump.exe ashQuick.exe c:\ashQuick.dmp
(producing dump file in the root of C:\ drive)
Please note that prior to taking it, you'll have to temporarily disable avast self defense - otherwise, the program responsible for creation of the dump won't be able to open the process.

I'm not sure you will be able to run a dump of a crashed application, although. I'm not a programmer and never read about ashQuick.exe crashing before.

Also, check the folder <avast>\data\log
Are there any files called unpXXXX there  (where XXXX is a random number)?
If so, send them to vlk (at) avast.com
They may contain more information about the problem (maybe a link to this thread).
Title: Re: Command to run Avast automatically after download?
Post by: Lisandro on June 12, 2008, 10:49:16 PM
Hmmm... using Free Download Manger, when a virus is discovered, ashQuick.exe crashed  :P
Strange... never happened before...
Title: Re: Command to run Avast automatically after download?
Post by: Sammo on June 12, 2008, 10:55:08 PM
Hmmm... using Free Download Manger, when a virus is discovered, ashQuick.exe crashed  :P
Strange... never happened before...
I emailed the dump files to vlk. Hopefully there is something in them that will give a clue.
Title: Re: Command to run Avast automatically after download?
Post by: Lisandro on June 13, 2008, 01:17:27 AM
when a virus is discovered, ashQuick.exe crashed  :P
I cannot reproduce the problem, only when a virus is discovered. A virus was on one of my USB drives and I set ashQuick.exe to automatically scan the USB drives while inserted.
I got the virus warning and ashQuick.exe crashed... I've lost the temp and dumps generated. Sorry.
Title: Re: Command to run Avast automatically after download?
Post by: Sammo on June 18, 2008, 12:30:32 AM
I emailed in a new DMP file that hopefully has more details and we can get a fix.
Title: Re: Command to run Avast automatically after download?
Post by: Vlk on June 18, 2008, 01:35:32 PM
The crash takes place in a module called tmemutil.dll which loads into the ashQuick.exe address space, but doesn't belong to avast. Do you know what it belongs to?

Thanks
Vlk
Title: Re: Command to run Avast automatically after download?
Post by: Lisandro on June 18, 2008, 02:09:01 PM
tmemutil.dll seems to be into Firefox (or its extensions) files...
Title: Re: Command to run Avast automatically after download?
Post by: Sammo on June 18, 2008, 05:37:40 PM
tmemutil.dll seems to be into Firefox (or its extensions) files...
Yes, this is a memory utility included in Tete's private Firefox builds. I just downloaded and installed the new Firefox 3 release which doesn't have the file and so far no avast crash. Thanks!