使用C#从Windows连接到Linux服务器
有没有办法在不使用Samba的情况下使用C#连接到Linux文件系统?
我需要它来从服务器获取配置文件,编辑它并放置它/>
回来。之后我需要重新启动一项服务,但这并不困难,因为我已经有了API来做这件事。
不幸的是我我找不到关于这个主题的任何信息,所以我担心这不能做到... b / b
TIA,>
Arjan。
Is there a way to connect to the Linux filesystem with C# without using Samba?
I need it to get a configuration file from the server, edit it and place it
back. And after that I need to restart a service, however this is not
difficult since I already have the API''s to do this.
Unfortunately I can''t find anything about this subject, so I am afraid that
it can''t be done...
TIA,
Arjan.
" Arjan" <氩*** @ discussions.microsoft.com>在留言中写道
news:62 ********************************** @ microsof t.com ...
|有没有办法用C#连接到Linux文件系统而不使用
Samba?
|
|我需要它从服务器获取配置文件,编辑它并放置
它
|背部。之后我需要重新启动服务,但这不是
|很难,因为我已经有API了。
|
|不幸的是我无法找到关于这个主题的任何内容,所以我很害怕
|它不可能......
|
| TIA,
| Arjan。
您必须映射驱动器以连接到导出的SMB共享,或使用UNC
路径来回复制文件。
Willy。
"Arjan" <Ar***@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.com...
| Is there a way to connect to the Linux filesystem with C# without using
Samba?
|
| I need it to get a configuration file from the server, edit it and place
it
| back. And after that I need to restart a service, however this is not
| difficult since I already have the API''s to do this.
|
| Unfortunately I can''t find anything about this subject, so I am afraid
that
| it can''t be done...
|
| TIA,
| Arjan.
You have to map a drive to connect to the exported SMB share, or use a UNC
path to copy the file back and forth.
Willy.
Arjan <氩*** @ discussions.microsoft.com>在留言中写道
news:62 ********************************** @ microsof t.com ...
Hi,
"Arjan" <Ar***@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.com...
有没有办法用C#连接到Linux文件系统而不使用
Samba?
Is there a way to connect to the Linux filesystem with C# without using
Samba?
你需要Samba in Linux服务器,这是Windows可以访问的唯一方式
它是一个常规的网络驱动器。
另一种方式是使用FTP
-
Ignacio Machin,>
ignacio.machin AT dot.state.fl.us
佛罗里达州交通局
You need Samba in the linux server, that''s the only way windows can access
it as a "regular" network drive.
The other way would be using FTP
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
感谢您的快速回复,但我提到我不想使用
Samba(SMB)。
" Willy Denoyette [MVP]"写道:
Thanks for your quick response, however I mentioned that I don''t want to use
Samba (SMB).
"Willy Denoyette [MVP]" wrote:
Arjan <氩*** @ discussions.microsoft.com>在消息中写道
新闻:62 ********************************** @ microsof t.com。 ..
|有没有办法用C#连接到Linux文件系统而不使用
Samba?
|
|我需要它从服务器获取配置文件,编辑它并放置
它
|背部。之后我需要重新启动服务,但这不是
|很难,因为我已经有了API来做这件事。
|
|不幸的是我找不到关于这个主题的任何内容,所以我很害怕
它无法完成......
|
| TIA,
| Arjan。
您必须映射驱动器以连接到导出的SMB共享,或使用UNC
路径来回复制文件。
Willy 。
"Arjan" <Ar***@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.com...
| Is there a way to connect to the Linux filesystem with C# without using
Samba?
|
| I need it to get a configuration file from the server, edit it and place
it
| back. And after that I need to restart a service, however this is not
| difficult since I already have the API''s to do this.
|
| Unfortunately I can''t find anything about this subject, so I am afraid
that
| it can''t be done...
|
| TIA,
| Arjan.
You have to map a drive to connect to the exported SMB share, or use a UNC
path to copy the file back and forth.
Willy.