Hi,
I am trying to get a file from one server and upload to a SFTP i can do this if i define the file I want to upload but to get this automated the filename of the file changes each time by putting the time and date on to the end of the file. Is it possible to put the start of the file name and have a wildcard put in to the script to allow it to pick up the latest file put in?.
this is the line i have currently that works and picks up a file if it is called Export.csv
put -nopermissions -nopreservetime "Z:\FOLDER\data\Export\Export.csv" Export.csv
or can it be done and it can look in the folder for the last modified date and take that one to upload?
Thanks
Ben