VBS script triggers virus alert when downloading file.

Posted on 2006-05-03
Last Modified: 2010-05-18
I'm trying to write a script that downloads a word template.  This script works fine (and I think I got it on the Experts Exchange site) , but it triggers a "Trojan Alert " VBS/PSYME from McAfee virus scan which then promptly erases it!

Is there a better way to do this without triggering the warning?

Const adTypeBinary = 1
Const adSaveCreateNotExist = 1
Const adSaveCreateOverWrite = 2

set oXMLHTTP = WScript.CreateObject("Microsoft.XMLHTTP") "GET", url, False
set oStream = createobject("")

oStream.type = adTypeBinary
oStream.write oXMLHTTP.responseBody
oStream.savetofile "c:\aaa\bbb\", adSaveCreateOverWrite
set oStream = nothing
set oHTTP = nothing

Question by:mafeldman
    LVL 11

    Expert Comment

    I suppose the script is not triggering the alert. The alert is triggered by the anti virus software so maybe there is no way to disable it from the script.

    Author Comment

    I plan to distribute this, perhaps commercially, and I don't think disabling the anti-virus software will be possible.  
    LVL 11

    Accepted Solution

    you may try to archive it with ZIP or RAR.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to dynamically set the form action using jQuery.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now