C# Class BasicMmethodExtensionClass.IOHelper.FileOrDirHelper.FileSharingOperationHelper

共享文档操作
Show file Open project: pengze0902/DotNetExtensionMethod

Public Methods

Method Description
ConnectState ( string path ) : bool
ConnectState ( string path, string userName, string passWord ) : bool

连接远程共享文件夹

Transport ( string src, string dst, string fileName ) : void

向远程文件夹保存本地内容,或者从远程文件夹下载文件到本地

Method Details

ConnectState() public static method

public static ConnectState ( string path ) : bool
path string
return bool

ConnectState() public static method

连接远程共享文件夹
public static ConnectState ( string path, string userName, string passWord ) : bool
path string 远程共享文件夹的路径
userName string 用户名
passWord string 密码
return bool

Transport() public static method

向远程文件夹保存本地内容,或者从远程文件夹下载文件到本地
public static Transport ( string src, string dst, string fileName ) : void
src string 要保存的文件的路径,如果保存文件到共享文件夹,这个路径就是本地文件路径如:@"D:\1.avi"
dst string 保存文件的路径,不含名称及扩展名
fileName string 保存文件的名称以及扩展名
return void