VBS script triggers virus alert when downloading file.
Posted on 2006-05-03
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")
oXMLHTTP.open "GET", url, False
set oStream = createobject("adodb.stream")
oStream.type = adTypeBinary
oStream.savetofile "c:\aaa\bbb\xyz.dot", adSaveCreateOverWrite
set oStream = nothing
set oHTTP = nothing