File Copy Question

  • Thread starter Thread starter Washington
  • Start date Start date
W

Washington

Is possible to copy file from some server for. e.g. brinkster to computer
(on specified location) programmatically?

I am trying to make some automatic update of my application...

Thanks :)
 
Yes, it is possible.
There are many ways how you can do it.
If you have an access to the share on the computer e.g.
\\brinkster\someshare you can use this path to copy your files.

File.Copy(@"\\brinkster\share\file.txt", "c:\temp");
 
I have information about absolute path on Brinkster, for e.g. Absolute Root
Path: c:\sites\Single\xxxx for Brinkster, but it is similar as is on my
computer c:\ something.
I have ftp information's (address and user) if is useable...

Thanks :)
 
Thanks, I'll try it.

But I am still interested to know how I can copy file directly, or
something...
The recomendation in previous message doesn't works :(
 
to copy from other machine you have to share a folder on that machine.
and to access it from outside you don't need to know its absolute path -
instead you have to know the name of the share, hostname and file name
itself. so if you share folder "c:\sites\single\" on machine brinkster
it usually is accessible from outside with path like this:
"\\brinkster\single\" unless you set different share name.

as to ftp - as far as i know there is no direct way to get files from
ftp in a simple way, so to get some clues you may want to look here:
http://www.codeproject.com/csharp/ftplib.asp
 
Back
Top