Simple Batch File Possible?
Hello WinSCP. This is all new to me, so be kind. :)
I have a file that I upload every weekday @ 11:00am. I want to automate the FTP process that I currently do manually. The file is created every weekday @ 9:30am, and is named "1234_MMDDYY_01". "1234_" and "_01" are constant, but the MMDDYY changes everyday. The answer to this is here I'm sure:
https://winscp.net/eng/docs/script_download_timestamped_filename
...but I can't figure out the date part of the filename. I also found this example in the forum, but I don't think this will work:
If someone could type out a quick example, that would be great.
Thanks in advance.
I have a file that I upload every weekday @ 11:00am. I want to automate the FTP process that I currently do manually. The file is created every weekday @ 9:30am, and is named "1234_MMDDYY_01". "1234_" and "_01" are constant, but the MMDDYY changes everyday. The answer to this is here I'm sure:
https://winscp.net/eng/docs/script_download_timestamped_filename
...but I can't figure out the date part of the filename. I also found this example in the forum, but I don't think this will work:
@echo off @For /F "tokens=2,3,4 delims=/ " %%A in ('Date /t') do @( Set Month=%%A Set Day=%%B Set Year=%%C set file=1234_%Month%%Day%%Year%_01
If someone could type out a quick example, that would be great.
Thanks in advance.