I'm trying to use wget to strip a jpeg camera image from an external web page every 30 seconds and I want do this 10 hours per day. I know wget will place the image in the same folder it runs from however, I want to rename the images 1 to 1200 and place them in a folder with the current day's date. The problem is, I have to provide credentials to the web page and I don't know quite how to pass those while using the run method. I’m not very confident in quotations for external commands and have tried several different variations of it. Also, I've searched the web for a day and have come up empty. Can someone point me in the right direction please?
This is what I’ve been working with and I know the syntax is messed up.
This is what I’ve been working with and I know the syntax is messed up.
Code:
url = "[URL unfurl="true"]http://someurl"[/URL]
wgetcred = "--http-user=username --http-password=password -O webcamview.jpg"
wgetcmd = url & wgetcred
Set ObjShell = WScript.CreateObject("WScript.Shell")
ObjShell.Run("wget" & wgetcmd),4,True