Have you installed your C# software (Visual Studio?) on the new PC? Do other aspects of the code work as expected? Does whatever path 'pathin' refers to exist on the new PC and do you have write permissions to that folder?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|