private void btnInstanceToDynamic_Click(object sender, EventArgs e) { // Create a new Batch instance // Logs onto the CSM with "AdvancedDemo" application // and "FormId" station Batch b = new Batch("AdvancedDemo", "FormId"); // Exports the collections "000002349_0001" and "000002349_0002" // to the dynamic: "c:\temp\test.dynamic" file. b.ToDynamic(@"c:\temp\Dync2and3.dynamic", new string[] { "00000002", "00000002" }); // Dispose the batch instance // and disconnect from the CSM b.Dispose(); }