I need to extract each week a list of files in a remote folder on my internet site. I need to retrieve the url to use those jpeg in an offline application, to load the images random. Also maybe useful to have directly random generate only one url each time the script is executed. If it's possible I'd like to use a batch file or a PowerShell script. I've ftp access but the link must be http and I want to save it in a txt file. If it possible I need also to take only jpeg that has name character > 20.
I think, maybe done by executing a php script in the folder that retrieve me the random url, than have a batch file that read each time this php file and copy the url inside it to a txt file. But I need to understand how to write those 2 scripts.
wget
and its mirroring options are what you want.