I know this thread is old but I need help.
1-click on URL link (which will generate file on FTP)
2- login to FTP and from specific folder copy the latest file which generated and copy to local server in two different folders
please help me with the above scenario . am trying below script which is not working :(
set target="C:\Test case2"
FOR /F "delims=" %%I IN ('DIR %source%\*.* /A:-D /O:-D /B') DO COPY %source%\"%%I" %target% & echo %%I & GOTO :END