从Windows系统打开Unix文件 [英] Opening a Unix file from a windows system

查看:425
本文介绍了从Windows系统打开Unix文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个我开发的C#程序,我希望在Windows 7系统上运行,并且从程序中我想访问位于同一网络上的unix系统上的文件(系统管理员说我是可使用)。我想从我的Windows C#程序中打开文件,然后从不同的unix系统中读取文件的内容(然后对内容做一些其他的事情)。从命令行我想我可以做一个ftp或类似的东西,但我希望能够以编程方式进行;打开文件,抓住它的内容,然后关闭它。任何帮助,将不胜感激。谢谢。

I have a C# program that I've developed that I want to run on a Windows 7 system and from the program I want to access a file that's on a unix system that's on the same network (that the system administrators say I have access to). I want to open the file, from my windows C# program and read the contents (and then do some other stuff with the contents) of the file from that different unix system. From a command line I suppose I could do an ftp or something like that, but I want to be able to do it programatically; open the file, grab it's contents, then close it . Any help would be appreciated. Thanks.

推荐答案

你仍然可以使用FTP。 .net ftp客户端库:

http://netftp.codeplex.com/ [ ^ ]
you can still use FTP. A .net ftp client library:
http://netftp.codeplex.com/[^]


使用SFTP。那里有一些.NET库。



https://bitbucket.org / mattgwagner / sharpssh [ ^ ]



sharpSsh - 用于.NET的Secure Shell(SSH)库 [ ^ ]
Use SFTP. There are some .NET libraries out there.

https://bitbucket.org/mattgwagner/sharpssh[^]

sharpSsh - A Secure Shell (SSH) library for .NET[^]


这篇关于从Windows系统打开Unix文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆