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

Writing file details in folders to a csv file

$
0
0

I’ve got some files in folders just under

C:\HotFolders\Upload

For example C:\HotFolders\Upload\1101, C:\HotFolders\Upload\2876

What Im wanting if possible is to write to a csv file information such as

Folder, FileName, Date

For every file within the folders under Upload (These folders can change so I need it to be able to just traverse these subfolders with no hard coding neccessary)

This csv file can be overwritten with new data each time

Similary I want to do exactly the same thing for C:\Services\To_Schools

For example C:\Services\To_Schools\SEN, C:\Services\To_Schools\EP

Im wanting to create another csv file as above with the same column headers For every file within the folders under To_Schools

Ive got a feeling the only way to do this is with C# script but I thought I would ask

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>