If you connect tFlowToIterate to your tDatabaseInput component, you'll get 1 global variable per field.
Assume you have 3 fields (currentFilename, destinationFolder and destinationFilename) and the flow after tDatabaseInput is called "row1".
Here is the tFileCopy configuration :
Introduction to Talend Open Studio for Data Integration.
Practical steps to developing your data integration strategy.
Create systems and workflow to manage clean data ingestion and data transformation.