Copy file
-
How can i copy file from a server? This is without any kind of sharing. i used this: System.IO.File.Copy("soucePath", "detpath") but return this message: Could not find file "sourcepath" and in the file system the file is in here. thank for all! Kosta
-
How can i copy file from a server? This is without any kind of sharing. i used this: System.IO.File.Copy("soucePath", "detpath") but return this message: Could not find file "sourcepath" and in the file system the file is in here. thank for all! Kosta
The credentials under which you are running must permit access to the source path - whatever its form. This implies some sort of sharing even if it is at the administrator level (i.e. the 'hidden' C$, D$ etc admin shares). Having said that, how about showing us the exact code you are using (use copy/paste) and the values of any variables used in the copy function?
...Steve
1. quod erat demonstrandum 2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once :-)