ftp 链接问题:
我的构造函数(在网上找的,呵呵...)是这样的:
public FTP( string remoteHost, string remotePath, string remoteUser, string remotePass, int remotePort )
{
strRemoteHost = remoteHost;
strRemotePath = remotePath;
strRemoteUser = remoteUser;
strRemotePass = remotePass;
strRemotePort = remotePort;
Connect();
}
我带入的参数为:
FTPClient ftp = new FTPClient( "192.168.1.2 ", "D:\\Soft\\Toos ", "Administrator ", "password ", 21);
第二个参数发生了错误错误信息为:
D:\Soft\Toos: The filename, directory name, or volume label syntax is incorrect.
请各位帮帮忙,我应该怎么写呀??
------解决方案--------------------太长了
我发到博客中,去看一下吧!
http://www.cnblogs.com/linfuguo/archive/2007/04/17/716828.html