You can configure as per this
http://darwin-it.blogspot.com/2008/03/configuration-of-ftp-synchronous-get.htmlThis will help u providing and file and directory name dynamically
solution:
1. Double click Invoke activity invoking the syncread.
2. Go to adapters tab and create new variable:
a. Click the torch icon.
b. Create the variable using fileadapteroutboundheader.wsdl message type.
3. Now before invoke activity put an assign activity and assign the filename that you are getting from the db to the above created variable.
4. You are done. Deploy the process, test and revert if this works/!works.
Regards,
P