Scenario 1: Interesting – so you want to keep a copy of the CSV file as it is and then also process it as XML?
To get the flat file parsed, you have to build a custom pipeline, and you must specify the pipeline on the receive port.
So maybe you could receive the file with a Pass-Thru pipeline, then to get a copy of it, have to Send Ports subscribe to it. Then you would have a receive port with the Flat-File Disassembler Pipeline grab the file from one of the two output locations.
Anyway, that’s my first thought off the top of my head.
The other alternative is to translate it back to the CSV – Biztalk can do that, but then you have to create a FlatFile Send Pipeline.
Second Question:
I don’t think Biztalk by itself can do that, but you might look into writing a C# program that does WMI (Windows Management Instrumentation), then Biztalk coudl call the C# (as a Static C# Function).
Neal