File Watcher Task Question

Hello All,

I've a question regarding the Konesans file watcher,  how can the task return information about the found file, such as name, size ....

I've a basic simple package that watch a folder for a file that get created everyday, but sometimes the data get blocked from the vendor and the file created with ZERO bytes, that's why I need to watch for it.

Any help is appreciated
LVL 21
Jason Yousef, MSSr. BI DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
The FileWatcher will warn you that a file has been created/modified/deleted but nothing else.

To know more details about the file, use the FileInfo class as shown in

You may also want to check my article on the FileWatcher at
Jason Yousef, MSSr. BI  DeveloperAuthor Commented:

Thank you for your quick reply, but i'm not a programmer, couldn't really understand how could I use the FileInfo class to get the file info into the E-mail.

The code for the simple program is listed here and it's written in VB.Net which is your specialty, perhaps if you give it a look you can help adding the e-mail feature with the file info into the application.

Éric MoreauSenior .Net ConsultantCommented:
>>perhaps if you give it a look you can help adding the e-mail feature with the file info into the application

I have read the various comments and you seem to be looking for a complete application and not only hints on how to get it done. EE is not a "RentACoder" type of forum.
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Jason Yousef, MSSr. BI  DeveloperAuthor Commented:
No the application is already working and done, all what I need to do is to add an e-mail notification with the file info, that's all

so I got around that by doing the file watcher task because that the only way I know how to do.
To avoid coding a script task you could use this "File Properties Task" from CodePlex:

With this you could check the file size and much much more on files...

Good luck

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jason Yousef, MSSr. BI  DeveloperAuthor Commented:
Thanks so Much......That was a helpful custom task...easy to follow and user variables

That actually answered my other question at

so please post a comment over there so I can award you the points.

Thanks again
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.