I have the following code that creates a folder based on today's date and moves the file from a folder to the new one. I have the following code:
set date="%date:~7,2%%date:~4,2%%date:~10,4%"
set mydir=%date%
cd "C:\Users\rnan\Desktop\Batch Files\Tess\File History\"
mkdir "C:\Users\rnan\Desktop\Batch Files\Tess\File History\%mydir%"
"C:\Program Files (x86)\WinSCP\WinSCP.com" /command ^
"open ftp://rnan:J13@Files8.cyberlynk.net/tess/" ^
"lcd ""C:\Users\rnan\Desktop\Batch Files\Tess\File History\%mydir%""" ^
"get *.csv>1D" ^
"exit"
This code creates a folder but doesn't copy any files to the newly created folder. The files are being copied from FTP server to the new folder. Please suggest some changes that copies those files.
Thanks!