<BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by Rupp:
_Jon_ I thought about using that but would rather keep the asp page as simple as possible. I nay have to resort to using that though. Thanks.
What are the arguments to the exe?
-Rupp<HR></BLOCKQUOTE>
Why not just run it as a recurring event and save the picture on your server? Your asp will load quicker as it does not need to access the net.
<pre class="ip-ubbcode-code-pre">
Dim strScript, strPage , strFilename
Const q = """"
strFilename = hs.GetAppPath & "\HTML\se_curtemp_720x486.jpg"
strPage = "http://image.weather.com/images/maps/current/se_curtemp_720x486.jpg"
strScript = q & hs.getAppPath & "\GetWebFile.exe" & q & " " & strPage & "," & strFilename
Set oExec = CreateObject("WScript.Shell").Exec(strScript)
Do While oExec.Status = Running
Loop
Set oExec = Nothing </pre>
This should work.
Jon
www.jon00.me.uk/hs.html
_Jon_ I thought about using that but would rather keep the asp page as simple as possible. I nay have to resort to using that though. Thanks.
What are the arguments to the exe?
-Rupp<HR></BLOCKQUOTE>
Why not just run it as a recurring event and save the picture on your server? Your asp will load quicker as it does not need to access the net.
<pre class="ip-ubbcode-code-pre">
Dim strScript, strPage , strFilename
Const q = """"
strFilename = hs.GetAppPath & "\HTML\se_curtemp_720x486.jpg"
strPage = "http://image.weather.com/images/maps/current/se_curtemp_720x486.jpg"
strScript = q & hs.getAppPath & "\GetWebFile.exe" & q & " " & strPage & "," & strFilename
Set oExec = CreateObject("WScript.Shell").Exec(strScript)
Do While oExec.Status = Running
Loop
Set oExec = Nothing </pre>
This should work.
Jon
www.jon00.me.uk/hs.html
Comment