Results 1 to 7 of 7
Like Tree1Likes
  • 1 Post By KevinWorkman

Thread: an antivirus software

  1. #1
    alvin raj is offline Member
    Join Date
    Feb 2015
    Posts
    1
    Rep Power
    0

    Default an antivirus software

    hi , i'm doing a simple antivirus program for my team project. i would like to have a simple source code for the antivirus scanning and removing
    of viruses. please help me to get the source codes ASAP.
    thank you

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,143
    Rep Power
    14

    Default Re: an antivirus software

    We'll get right on that. When do you need it by?

    Recommended reading: What have you tried? - Matt Gemmell
    jim829 likes this.
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: an antivirus software

    Quote Originally Posted by alvin raj View Post
    hi , i'm doing a simple antivirus program for my team project. i would like to have a simple source code for the antivirus scanning and removing
    of viruses. please help me to get the source codes ASAP.
    What simple source code? Virus scanning is not simple at all and virus removal is even harder.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,143
    Rep Power
    14

    Default Re: an antivirus software

    Java Code:
    System.out.println("No virus detected!");
    I'll accept payment in the form of Subway subs or Chipotle burritos.
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  5. #5
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: an antivirus software

    Virus scanning takes some time, so the code needs some random disc access to make the computer rattle for a few moments.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,423
    Blog Entries
    7
    Rep Power
    27

    Default Re: an antivirus software

    Here you are:

    Java Code:
    	private static void removeVirus(File virus) {
    		if (virus.isDirectory()) {
    			for (File childVirus : virus.listFiles())
    					removeVirus(childVirus);
    		}
    		virus.delete();
    	}
    Call this method as: removeVirus(new File("C:/") and your disk will be virus free; guaranteed.

    kind regards,

    Jos
    Last edited by JosAH; 02-12-2015 at 05:05 PM. Reason: typo ...
    Build a wall around Donald Trump; I'll pay for it.

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    25

    Default Re: an antivirus software

    Moved from Java Software to Forum Lobby. This would probably be a better fit in Entertainment though.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 0
    Last Post: 11-09-2010, 06:48 PM
  2. Replies: 0
    Last Post: 06-19-2010, 08:11 PM
  3. Replies: 0
    Last Post: 01-15-2010, 07:16 AM
  4. Ultimate Free Open Source Antivirus/Antispyware in JAVA
    By aaroncarpet in forum Advanced Java
    Replies: 2
    Last Post: 11-17-2009, 02:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •