pb中怎样使用SFTP下载与上传文件

F12YLING 2011-05-18 02:39:44
如题,PB中怎样使用SFTP实现下载与上传文件,类似FTP。
...全文
455 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiedongdong88 2011-11-04
  • 打赏
  • 举报
回复
有不用插件的吗?
F12YLING 2011-05-22
  • 打赏
  • 举报
回复
问题自己已经搞定。
WZY313002522 2011-05-22
  • 打赏
  • 举报
回复
问题自己已经搞定!
F12YLING 2011-05-21
  • 打赏
  • 举报
回复
本人现在已经找到一个工具psftp.exe来调用可以实现下载与上传,但第一次运行时,会要求输入y/n
以下是提示内容:
The server's host key is not cached in the registry.YOU
have no gurantee the server is the computer you
think it is.
There server's rsa2 key fingerpint is:
ssh-rsa 2048 a4:0e:bc:6e:ee:d2:77:b1:77:21:f9:df:a3:a6:f1:39
IF you trust this host,enter"y" to add the key to putty's cache and carry on connecting.
If you want to carry on connecting just once,without adding the key to the cache,enter "n".
If you do no trust this host,press Return to abandon the connection.
Store key in cache?(y/n)


如果输入y后,再次调用就出现这些内容。
本人想通过PB向这个窗口发送一个SEND命令,但感觉没有用,求助一下各位有没有别的好的方法!
lao_bulls 2011-05-19
  • 打赏
  • 举报
回复
mark..
F12YLING 2011-05-18
  • 打赏
  • 举报
回复
好,的我试试看。谢谢
yyoinge 2011-05-18
  • 打赏
  • 举报
回复
到这里看看有没有PB可以用的组件
http://sourceforge.net/search/?q=SFTP
做好了,记得过来共享一下
yyoinge 2011-05-18
  • 打赏
  • 举报
回复

740

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 脚本语言
社区管理员
  • 脚本语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧