Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Creating Folders Named by the first 4 digits of filenames

$
0
0

I have a folder Services. Under this, To Schools and under that lots of Service folders with files in.

I want to look at the To Schools Folder and traverse all the directories. All the files start with a 4 digit code.

I want to be able to create folders somewhere else that match these 4 digit codes.

Services           To Schools      Service1          1111_Service1_Example.csv 

                                                                        1112_Service1_Example.xls

                                                Service2          1111_Service2_Example.doc

                                                                       1113_Service2_Example.xls

                                                                       1114_Service2_Example.doc

                                                Service3          1114_Service3_Example.csv

To

Hotfolders       Upload                        1111

                                                1112

                                                1113

                                                1114

Is this possible using IS? I know it can be set up fairly easily in C# but it would be good if I could do it without that much coding (A Skill I don’t have)

the logic is to create the folders.

Then add the folders to the folders (Someone has already healed me with this)

Then delete all the folders after the files have been moved somewhere else by users, ready for next time.

Debbie


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>