Link to home
Start Free TrialLog in
Avatar of Jason Yousef
Jason YousefFlag for United States of America

asked on

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
Thanks
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

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 http://www.emoreau.com/Entries/Articles/2006/03/Folders-synchronization-using-the-SystemIO-namespace.aspx

You may also want to check my article on the FileWatcher at http://www.emoreau.com/Entries/Articles/2005/04/The-FileSystemWatcher-component.aspx
Avatar of Jason Yousef

ASKER

emoreau:

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.

https://www.experts-exchange.com/questions/25476569/SIMPLE-Add-E-mail-After-completion-to-to-VB-net-Code.html


Thanks
>>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.
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.
ASKER CERTIFIED SOLUTION
Avatar of yogi4life
yogi4life
Flag of Norway image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks so Much......That was a helpful custom task...easy to follow and user variables

That actually answered my other question at https://www.experts-exchange.com/questions/25476569/SIMPLE-Add-E-mail-After-completion-to-to-VB-net-Code.html

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

Thanks again