Sample Chilkat FTP script The following is a Sample script for the Chilkat FTP component. <% '## Create object Set objConnect = Server.CreateObject("Chilkatftp.ChilkatFTP") '## Get hostname objConnect.HostName = ("Host address") '## Get FTP username objConnect.Username = ("user") '## Get FTP password objConnect.Password = ("pass") '## Connect to server objConnect.Connect() '## Get connect status If objConnect.IsConnected = 1 Then '## Change dir objConnect.ChangeRemoteDir("Directory") If objConnect.CreateRemoteDir ("Directory") = 1 Then Response.Write "It Worked!" Else Response.Write objConnect.ErrorLogHtml End If Else Response.Write "Failed to connect to the server!" End If '## Disconnect objConnect.Disconnect() %> |
2010-04-30
免费版Chilkat FTP 使用例子
Chilkat FTP 分免费版和商业版(Chilkat FTP2),免费版Chilkat Soft 不给技术支持,没有用例,这给广大网友带来很大的烦恼。下面是一个简单的FTP用例,也许能帮助你。
订阅:
博文 (Atom)