The FILE adapter will poll a directory for a file, it will open the file and generate a Biztalk message with the contents. This message will be published to the messagebox. An orchestration bound to this receive port will be initiated.
Your problem is the file is empty, so no message is being generated.
If you cannot modify the file contents, then you will need a custom adapter to generate a message when it detects the presence of the \”taskcompleted.txt\” file.
You might like to check out this adapter
[url]http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=E473FC93-5081-44C7-A9C9-84BF4E783728[/url]
You should be able to write a scheduled task class library that can be used by this adapter to meet your needs.