Hi, i am looking to download a jpg every 2-4 mins from a public traffic camera as a project.
i want the file to download to say c:\temp\ from the source:
https://roads-waterways.transport.nsw.gov.au/trafficreports/cameras/camera_images/hunterexpressway_m1.jpg
i also need it to prepend the timestamp into the filename
for example:
hunterexpressway_m1- 10-08-2021-22:34.jpg
or something of the sort
any suggestions please? i cannot find one that works or does this task.
i managed this so far:
$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadFile("https://roads-waterways.transport.nsw.gov.au/trafficreports/cameras/camera_images/hunterexpressway_m1.jpg","C:temphunterexpressway_m1hunterexpressway_m1.jpg")
sincerely