programing a virus scanner

Discussion in 'C' started by shawnkirk23, Jan 6, 2009.

  1. shawnkirk23

    shawnkirk23 New Member

    Joined:
    Jan 6, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    ok so i have a little project programing a virus scanner but here is my problem i cant figuer out what to put so when you hit the scan button it scans all the computer files... any ideas??
    Thanks in advance
    Shawn.
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    Code:
    system("avg -scan");
    
    Seriously though, isn't that just asking for the complete code of a virus scanner? You'll need to scan the directory structure from the root of each hard drive partition, then for each file open it, read the contents, then check the relevant contents against each virus you know about.

    Writing an antivirus program is not a "little project". If you don't even know how to scan directories on a computer then this project is way way way beyond your abilities (c.f 5 minutes with Meccano and now wanting to build a full size replica of the Eiffel Tower); you should give up now and start a project that is more within your capabilities. For more details on the complexities of writing a virus scanner see my previous post in the thread http://www.go4expert.com/showthread.php?t=11493
     
  3. suseenthiran

    suseenthiran New Member

    Joined:
    Sep 7, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    ya it's very effective
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice