rah,
It could be a lot of things, but without code it is hard to say. Have you tried to chdir to a local directory and verified that it works as you expect? Have you verified that the remote shares are accessible from within your program (perhaps by invoking net use)? There may be something obvious I am missing and I am sure another monk will correct me if I am, but code would be helpful.
Cheers - L~R