Results 1 to 4 of 4

Thread: Using Norton Antivirus from VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    12

    Question 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

  2. #2
    Member
    Join Date
    Aug 2003
    Posts
    63

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    12
    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

  4. #4
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575
    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
  •  



Click Here to Expand Forum to Full Width