How To timestamp downloads
Sometimes it is necessary to dynamically change the destination file/folder name. For example if you have a backup task scheduled which should put the files into a different folder each time it is started.
In this part we are getting familiar with the AddToQueue.exe command line tool.
KB: AddToQueue command line tool
The syntax to upload a local folder looks like that:
AddToQueue.exe copy folder c:\temp\backup {AEB81A25-62AB-4FB6-B25B-2C2A3F58ECE4}/temp/backup
where {AEB81A25-62AB-4FB6-B25B-2C2A3F58ECE4} is the FavoriteId.
Now we need to figure out the FavoriteId.
In this part we will figure out the unique FavoriteId for a particular favorite in SmartFTP.
KB: FavoriteId
Since we now have all the information to use the AddToQueue.exe tool, we can build our batch file which dynamically sets the destination name.
In this part we are going to create a scheduled task in the Windows Task Scheduler which runs the Backup.cmd we have created in Part 3. If you already automate your process with a batch file, this is not required.
키워드
timestamp,scheduler,AddToQueue