user123941
user123941

Reputation: 21

How to copy a LINUX file using c# remotely?

I have to make a duplicate copy of a file located on a Linux Server and then rename that with another name. For example there is existing file in /temp/100.txt . I have to copy that file to same location with another name i.e. /temp/101.txt . How can I achieve that with c#.

We have that folder /temp available as NFS folder from IIS webserver on win 2003. Does c# library File.copy works on NFS file system ?

Upvotes: 0

Views: 1963

Answers (1)

Alex Martelli
Alex Martelli

Reputation: 881567

Yes, File.copy can work on NFS or any other filesystem you can mount R/W (if said FS is a destination -- even just R/O if it's only the source) on your Windows machine. (SMB aka Samba is probably the most popular remote FS for Windows/Linux interoperability, but NFS has its own strengths).

Upvotes: 3

Related Questions