variable filename as command line argument

Core FTP client questions and answers
Post Reply
Dave71
Posts: 1
Joined: Mon Dec 15, 2008 10:05 am

variable filename as command line argument

Post by Dave71 »

Hello,

I started using CoreFTP about a week ago to cater for my automated FTP uploads and downloads, and it works very nice. I have a question though: is it possible to use variables in the command line path/filename argument?

I use CoreFTP to upload some backup files from a remote server to an FTP site. The backup files on the remote server contain the date in their names so every night I want to upload the latest one to the FTP site (for example, tonight I will need to upload the "backup_20081215.bak" file) . I use the following command to do the upload
*********
"c:\program files\coreftp\coreftp.exe" -s -O -u "<path>\backup_20081214.bak" -site <site> -p <destination path> -output <path>\output.log -log <path>\%%Y%%m%%d.log
*********

It would be great if I could use variables in the source path/filename parameter, something similar to the way the -log command takes %Y, %m, %d as variables. Is this possible?

Thanks
Post Reply