I am having a problem wrapping my head around creating a very basic script to upload a directory to an FTP site.
I am able to create a directory on the local machine to include the day and date in the directory name using the variables %day% and %date%. Using today's date, the result is a directory name being created as "1206_Files".
I now need to upload this directory to an FTP server with any files or subfolders included.
I cannot find a way to upload a directory using the Windows Command line FTP.
I tried instead to create a directory on the FTP server using the date and day variables that worked on the local machine. These do not work using the mkdir FTP command.
The variables come through as literal character resulting in a directory named "%day%%date%_files".
So my questions are:
- is there a way to upload a directory using the Windows command line FTP? (zipping the directory is not an option)
- is there a way to create a directory on the FTP server using the date and day variables for the name?
- is there a way to perhaps mirror a directory structure from a local machine to an FTP site?