I have a script running every minute via Task Scheduler that pulls stats from my router for plotting over time, every minute a pop up appears saying something like "How do you want too open this type of file VBS" with Windows Script Host" even though its set as default for VBS files??

does anyone know how I can prevent this message appearing?

funny thing is if I run the VBS file myself it works just fine?

code in script:

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\ADSL_stats\Scripts\HG612-getADSLstats.BAT" & Chr(34), 0
Set WshShell = Nothing