# Active X Inet 的 Ftp功能?

Posted by Geoffrey on August 10, 1998 at 18:32:36:

第一次用vb, 所以不太熟....
当我使用Inet这个vb内建的active-X元件, 来执行ftp传送时, 却得到下列讯息
>>ErrorCode: 12003 : 200 Type set to I.
>>200 PORT command successful.
>>550 /HOME/BKS/TEST.C: No such file OR directory.
显而易见, 我送去的参数被转换成大写了,
如果说是连线上的问题(ip address, ftp server等)
相同的 statement, 却可以执行如 CD, DIR等ftp service的命令. 而且也能得到正确的回应
程式码如下:
Dim file_name, lower As String ' file parater

file_name = " /home/bks/test.c c:\temp\kkk.c "
lower = LCase(file_name)
With Inet1
.AccessType = icDirect
.URL = "192.168.0.100" '内建的 ftp server
.Protocol = icFTP
.UserName = "bks"
.Password = "aaaaa"
.Execute "ftp://192.168.0.100", "Get " & file_name
End With
期待能有power user解惑
Thanks.

Follow Ups:

- 应该没问题的说~~~~~ 络斯狄克 08:38:01 8/11/98 (1)
  - Re: 应该没问题的说~~~~~ Geoffrey 13:32:16 8/12/98 (0)