|
-
Aug 25th, 2003, 03:50 PM
#1
Thread Starter
New Member
Using Norton Antivirus from VB
Hello,
I write VB appliacation that downloads files from server.
How it's possible to use Norton Antivirus from Visual Basic?
Thank you
-
Aug 25th, 2003, 05:34 PM
#2
Member
You should...
Hello:
I think you should search in the Norton Antivirus documentation for the command line arguments supported by the antivirus.
If you know the command line arguments, you could call the antivirus to check the downloaded file. Something like this:
Code:
Public Sub CheckMyFile(strFilename As String)
On Error Goto ErrorHandler
Call Shell("C:\Norton\Nav.exe --check " & strFilename, vbNormalFocus)
Exit Sub
ErrorHandler:
MsgBox "Unable to check the file.", vbCritical, "Error"
End Sub
This is only an example. I supoused the "--check" command line argument to check a file, and "C:\Norton\Nav.exe" couldn't be the real path to Norton main EXE.
I you have troubles, make a new reply.
Keep in touch,
Andy
-
Aug 27th, 2003, 07:11 AM
#3
Thread Starter
New Member
Thank you, Andy 
It helped.
Now I can scan files and folders for viruses.
There is just one problem.
When I scan file, I'd like to get answer if this file is infected (true
or false). I need it because if a file doesn't have virus I put all
information about it in DB.
I didn't find such option in command line parameters of
Norton Antivirus.
Any idea?
Thank you
-
Aug 27th, 2003, 07:23 AM
#4
Fanatic Member
like he said, it was a guess at how it would take the command.
Your lucky that actaully worked, very lucky guess.
Theres no way you can guess what you want next, like he said - look at documentation on how it takes commands and what it generates and then you can be helped further.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|