Hi, I have several quesionts about the cmd for windows, (I do realize this is a linux forum).
I am trying to create a bat file that automatically fetches file off ftp server and loads onto a device that I order it to.
But the folder on the remote ftp server has hundreds of files in it (backups that my machine uploads regularly). I am trying to fetch the latest file. I think this can either be known from the datetime of the file and the name that I gave it:
Code:
120611_script.tgz
120715_script.tgz
...
The names are yymmdd_script.tgz, but I am not sure how I can get the latest one instead of them all.
I am about to start the code
Code:
OPEN ftp.hotfile.com
account
password
dir
...
Thanks
Ted