You are most welcome LS. Glad it helped.
--
George (Bindar Dundat)
This information is provided "AS IS"
It may even be wrong!
http://www.microsoft.com/security/articles/spam.asp
message | This site was just thing I needed to do the test. AVG did detect both the
| eicar.com and the eicar .text with alarming and satisfying rapidity. I was
| not enabled by MS Word to attach a copy of the Eicar.com.to my Outlook
| E-mail message to myself; " I am not authorized...." something to that
| effect, so that failed . I was able to attach the text version to my self
| addressed message but am unable to send it though. When I do a test of it in
| my drafts folder with the macro, it does not detect anything, so I guess the
| application will not work as I had hoped.
|
| Thanks as usual George, I appreciate it.
| --
| LuckyStrike
| (e-mail address removed)
|
| | > If you search the net you can find some files for testing AV apps. (PCR
| might
| > remember the site) These are simulated viruses only. You could attach
| one to a
| > message to yourself and see if AVG picks it up. Actually I just found the
| page
| > again.
| >
http://www.eicar.org/anti_virus_test_file.htm
| > Downloads are near the bottom.
| >
| > --
| > George (Bindar Dundat)
| > This information is provided "AS IS"
| > It may even be wrong!
| >
http://www.microsoft.com/security/articles/spam.asp
| in
| > message | > |
| > | | > | >
| > | > "LuckyStrike" <
[email protected]>
| wrote
| > | in message | > | >
| > | > > This one below is the Macro that I am having trouble with. I have
| added
| > | a
| > | > > tool button, but it then asks for the filename to be added to the
| > | command
| > | > > line.
| > | > >
| > | > > Sub ScanItemAVG()
| > | > > Shell ("C:\Program Files\Grisoft\AVG6\avgse.exe")
| > | > > End Sub
| > | >
| > | > The above code calls avgse.exe but you also need to pass a filename
| > | > to the program. How else would the program know what file you
| > | > want to scan?
| > | >
| > | > This might show you how to pass a parameter through the command line
| > | > to the program.
| > | >
| > | > Sub ScanItemAVG()
| > | > dim myfile
| > | > set myfile=c:\msdos.sys
| > | > Shell ("C:\Program Files\Grisoft\AVG6\avgse.exe" myfile)
| > | > End Sub
| > | >
| > | > Like I said though, I don't know anything about Outlook (or VB).
| > | > Where is this file you are trying to scan? I guess your code is
| > | > contained in the "button object"?
| > | >
| > | > Basically, you need to "get" the file object first, and then pass off
| the
| > | > the file's name property to AVG. The question I think, is, how to get
| the
| > | > file.name ?
| > | >
| >
| | --------------------------------------------------------------------------
| --
| > | --------------------
| > |
| > | Hi Bill-
| > |
| > | The "file" I am trying to scan is an E-mail message with attachments
| that is
| > | in my Outlook 2002 inbox. The reason for this desire to create a simple
| > | basic "Scan this Item, Now" toolbutton is to eliminate the need to click
| > | upon the attachment, sending it to a folder named "Scan for Virus" and
| then
| > | R-Clicking the "Scan with AVG" command. I have found a way to correctly
| > | enter the command without errors, thus eliminating the problem of my
| initial
| > | query.
| > |
| > | The command path I have made is as follows -
| > |
| > | Sub ScanItemAVG()
| > | Shell ("C:\Program Files\Grisoft\AVG6\\AVGSE.exe""%1\")
| > | End Sub
| > |
| > | This command has eliminated the appearance of the message box with it's
| > | accompanying "complaint". I no longer get the "Add filename to the
| command
| > | line", nor are there any "compile" or "syntax" errors either.
| > |
| > | Now when I single click upon the toolbutton(s), which are located both
| on
| > | the inbox of Outlook 2002, as well as upon the actual toolbutton area of
| an
| > | open E-mail message, the AVG Shell Extension Box appears virtually
| > | instantaneously stating "Test Finished". No Virus or suspicious files
| were
| > | detected...". So far, so good.
| > |
| > | BUT, there is an absence of any name in the "last file tested" field.
| > | Because it is blank, without any name in that field I am doubting that
| it
| > | has actually scanned anything.
| > |
| > | That's the latest development in this "simple" <G> saga.
| > |
| > | Regards,
| > | --
| > | LuckyStrike
| > | (e-mail address removed)
| >
| | --------------------------------------------------------------------------
| --
| > | --------
| > |
| > |
| > |
| >
|
|