Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 looping thru files in a directory to move

Author  Topic 

sarahmfr
Posting Yak Master

214 Posts

Posted - 2010-04-29 : 13:41:47
How to loop thru files in a given directory.
I have a group of xml files in a directory I need to parse them then move them to another directory named processed.
I know how to move one file in a directory

sarah

vijayisonly
Master Smack Fu Yak Hacker

1836 Posts

Posted - 2010-04-29 : 14:28:39
You just have to repeat the task inside a For-Loop container.
This link should guide you.
http://www.sqlis.com/sqlis/post/Looping-over-files-with-the-Foreach-Loop.aspx
Go to Top of Page
   

- Advertisement -