OK, it appears that despite the intellisense feedback it is building successfully. To be sure I'd like to see the output pushed out to a message box.
Samuel......
Can you give me one more bit of script (incorporated with your C#) which will send the output of the rowcount variable to a message box? I will then strip it back out.
Message box to say something like "the rowcount for <var_file> is <var_rowcount>?