How can I make a directory(folder) in FTP server using current date?

587 Views Asked by At

Thank you for helping me in advance !

I am currently making FTP batch file to create new folders in FTP server. the problem is that I could figure out how to make folders in local but I can't not find the way to make folders naming current date in FTP server. Could you please let me know command lines to fix this problem?

1

There are 1 best solutions below

0
Martin Prikryl On

It's easy with (my) WinSCP FTP client and its %TIMESTAMP% syntax:

winscp.com /ini=nul /command ^
    "open ftp://username:[email protected]/" ^
    "cd /remote/parent/path" ^
    "mkdir %%TIMESTAMP#yyyymmdd%%" ^
    "exit"