| Solution |
| 1. |
Create new task |
Click Tools -> Task
Editor. |
| 2. |
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. |
| 3. |
Check if the
filename has today's date in it. |
- Under Conditional 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$
|
| 4 |
Upload the files on
FTP server |
- From the Internet Category double-click
on FTP command.
- Insert a FTP connect command to connect
to your FTP server.
- Similarly insert a FTP '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.
|
|
|
| When
you run this task, it will loop through all the
files of the folder specified by you. For each
file it will check if the filename contains
today's date and if it does then will upload the
file on the FTP server specified. |