I'm trying to make a script that creates a folder with the name of the day and then in that folder put a file downloaded by ftp
The part of creating the folder is done which is the following:
cd..
cd..
cd Carpeta
mkdir %date:~-4,4%%date:~3,2%%date:~-10,2%
As the name of the folder will vary daily, I have to store it in a variable and then specify it with the FTP lcd command and download the file there. I searched the Internet, but I could not find something specific about it.
Is this possible to do?