| Solution A |

Screenshot 1

Screenshot 2

Screenshot 3

|
 |
Create a new task
- Click on New -> Task Editor
|
 |
Loop through all the files in a folder
Insert a Loop command and select option 'Each file in a folder' and select folder name from where you want to upload the files. |
 |
Check if the filename has today's date in it.
- Under Conditions / Loops category, double-click on If command
- Select the option Variable
- Click on Edit button
- From the first drop down box select the System variable name FilenName
- Select the Operator 'Includes'
- In the Fix option specify the value $Day$-$Month$-$Year$
|
 |
Upload the files on FTP server
- From the Internet Category double-click on FTP/SFTP command.
- Insert a FTP/SFTP connect command to connect to your FTP server.
- Similarly insert a FTP/SFTP 'Put File' command to upload the qualifying files on FTP server.
- To get the path of the entire file use the variables $CurrentDirectory$\$FileName$.$Extension$
- Insert a FTP Disconnect command.
|
| |
| Solution B |
 |
Create a new task
- Click on New -> Task Editor
|
 |
Loop through all the files in a folder
- Insert a Loop command and select option 'Each file in a folder'
- Select the folder name from where you want to upload the
files.
|
 |
Check if the extension of file is ‘txt’.
- Under Conditions / Loops category, double-click on If command.
- Select the option Variable
- Click on Edit button
- From the first drop down box select the System variable name Extension
- Select the Operator 'Equals To'
- In the Fix option specify the value txt.
|
 |
Upload the files on SFTP server
- From the Internet Category double-click on FTP/SFTP command.
- Insert a FTP/SFTP connect command to connect to your SFTP server. Select the Secure FTP option.
- Similarly insert a FTP/SFTP 'Put File' command to upload the qualifying files on SFTP server.
- To get the path of the entire file use the variables C:\$FileName$.$Extension$
- Insert a FTP/SFTP Disconnect command.
|