I use Hikvision to make timelapses and take images every 2 seconds.
I save images directly to my PC's samba share and to the Hikvision SD card in case of power loss (hikvision camera are on UPS)
If I have a power loss I do not have Windows... I run Linux so here your script could help me getting files back to the PC when the PC are booted up again.
$ java -jar ../hikvision-download-assistant.jar 192.168.3.230 admin PASSWORD --from-time 16:00 --to-time 16:05 | cut -d '|' -f 5 | while read curl_cmd; do eval $curl_cmd; done
Type|EventType|Start|End|Curl
-----------------------------
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
Found 0 videos and 149 photos
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
etc...etc...
java -jar ../hikvision-download-assistant.jar 192.168.3.230 admin PASSWORD --from-time 16:00 --to-time 16:05 | cut -d '|' -f 5
Getting photos and videos from "Saturday Oct 16, 2021 at 4:00:00 pm CEST" to "Saturday Oct 16, 2021 at 4:05:00 pm CEST"
Type|EventType|Start|End|Curl
-----------------------------
curl -f --anyauth --user admin:PASSWORD 'http://192.168.3.230/Streaming/tracks/103/?starttime=20211016T140002Z&endtime=20211016T140002Z&name=ch01_0800024600000175058_00&size=530036' --output 2021-10-16T16-00-02.jpeg
curl -f --anyauth --user admin:PASSWORD 'http://192.168.3.230/Streaming/tracks/103/?starttime=20211016T140004Z&endtime=20211016T140004Z&name=ch01_0800024600000175059_00&size=528035' --output 2021-10-16T16-00-04.jpeg
curl -f --anyauth --user admin:PASSWORD 'http://192.168.3.230/Streaming/tracks/103/?starttime=20211016T140006Z&endtime=20211016T140006Z&name=ch01_0800024600000175060_00&size=529072' --output 2021-10-16T16-00-06.jpeg
curl -f --anyauth --user admin:PASSWORD 'http://192.168.3.230/Streaming/tracks/103/?starttime=20211016T140008Z&endtime=20211016T140008Z&name=ch01_0800024600000175061_00&size=528430' --output 2021-10-16T16-00-08.jpeg
curl -f --anyauth --user admin:PASSWORD 'http://192.168.3.230/Streaming/tracks/103/?starttime=20211016T140010Z&endtime=20211016T140010Z&name=ch01_0800024600000175062_00&size=528643' --output 2021-10-16T16-00-10.jpeg