ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

搜索
EH技术汇-专业的职场技能充电站 妙哉!函数段子手趣味讲函数 Excel服务器-会Excel,做管理系统 效率神器,一键搞定繁琐工作
Python自动化办公应用大全 Excel 2021函数公式学习大典 Kutools for Office 套件发布 打造核心竞争力的职场宝典
让更多数据处理,一键完成 数据工作者的案头书 免费直播课集锦 ExcelHome出品 - VBA代码宝免费下载
用ChatGPT与VBA一键搞定Excel WPS表格从入门到精通 Excel VBA经典代码实践指南
12
返回列表 发新帖
楼主: whyily

从FTP下载文件

[复制链接]

TA的精华主题

TA的得分主题

发表于 2006-12-4 00:41 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助

Release Notes  Sep 11, 2001
BASP21 belongs to Tatsuo Baba
Written by TK Upperfield

This is a comprehensive component, packed with 66 of useful methods, that is able to operated from ASP, Visual Basic, VBA, WSH(Windows Scripting Host).

Down Load! BASP21-20010911.exe (1002KB) Update Sep 11, 2001
MD5: 76706c89a1daffaca2d96159a83584ea

How to Install

Download "BASP21.exe" into certain folder and just double-click it. In next 10-second, installation finishes all work, and shows confirmation, then just press button to close it.
Following files are copied into System Folder.

  • BASP21.DLL Main COM Component
  • BSMTP.DLL for SMTP/POP3 Engine
  • BREGEXP.DLL for Regular Expression Engine
  • BCOUNT.DLL for Counter Engine
  • BSENDM.EXE Command Line SendMail Engine
  • BINETX.DLL HTTP/FTP Engine
  • BASP21.TLB Type Library of BASP21 (Refers from VB or C++)

How to Uninstall

Select BASP21 from [Control Panel] -> [Add/Delete Application]

TA的精华主题

TA的得分主题

发表于 2006-12-4 00:41 | 显示全部楼层

How to Use

Create object names "basp21" by CreateObject Method.

   Set bobj = Server.CreateObject("basp21")   ' ASP
   Set bobj = CreateObject("basp21")          ' VBA or VB
   Set bobj = WScript.CreateObject("basp21")  ' WSH
Case of 
Socket Object:
   Set bsocket = Server.CreateObject("basp21.socket")   ' ASP
   Set bsocket = CreateObject("basp21.socket")          ' VBA or VB
   Set bsocket = WScript.CreateObject("basp21.socket")  ' WSH
Case of 
FTP Object:
   Set ftp = Server.CreateObject("basp21.FTP")   ' ASP
   Set ftp = CreateObject("basp21.FTP")          ' VBA or VB
   Set ftp = WScript.CreateObject("basp21.FTP")  ' WSH

Call method of Object you just created.

		variable = bobj.method_name(parameter)

If you are using ASP(Active Server Pages), you can create an Application Object by writing a code into global.asa; looks like below,

  <SCRIPT LANGUAGE=VBScript RUNAT=Server>
  SUB Application_OnStart
    Set Application("bobj") = Server.CreateObject("Basp21")
  END SUB
  </SCRIPT>

and declare the object at each asp file as below;

   Set bobj = Application("bobj")

List of Methods

  1. SendMail Send Mail
  2. SendMailEx Send Mail(Asynchronous Mode)
  3. RcvMail Receive Mail
  4. ReadMail Read Mail
  5. Match String Pattern Match(Perl5 Compatible)
  6. Replace String Replace(Perl5 Compatible)
  7. Translate String Translate(Perl5 Compatible)
  8. Split Split(Perl5 Compatible)
  9. FGrep File Pattern Match 2000/06/18 Update!
  10. FileCheck File Check
  11. Sort Sort
  12. ReadDir Read(List) Directory
  13. Space Space
  14. IsNum Check Digits
  15. HAN2ZEN Convert double space char to single space char
  16. RepTagChar Replace HTML Tag
  17. BinaryRead Read Binary Array from File
  18. sprintf "sprintf" Wrapper
  19. strftime "strftime" Wrapper
  20. Debug Dump strings into Notepad
  21. StrConv VB Compatible String Converter
  22. BinaryWrite Write Binary Array into File
  23. FormSaveAs HTML File Upload(Write File)
  24. FormFileName HTML File Upload(File Name)
  25. FormFileSize HTML File Upload(File Size)
  26. Form HTML File Upload(Read Text)
  27. FormBinary HTML File Upload(Read Binary)
  28. Execute Execute Program
  29. Kconv Convert Kanji Code
  30. KconvFile Convert Entire File Kanji Code
  31. BinaryConcat Merge Binary Array
  32. DebugClear Clear the string of Notepad
  33. SplitB Split(Perl5 Compatible) Binary Array
  34. ByteArray Return Binary Array from Strings
  35. MatchEx Extended Pattern Match
  36. Counter GIF Counter
  37. Version Version string
  38. Base64 BASE64 encode/decode
  39. Socket Object 6 methods
  40. FTP Object 12 methods
  41. GetTempFile Make temporary file2000/01/11 New!
  42. W3get Get URL(http:// ftp://) 2000/01/11 New!
  43. MidB Access Binary Array 2000/02/06 New!
  44. MatchBBinary Array Pattern Match(Perl5 Compatible) 2000/02/06 New!
  45. SortMail Sort Mail 2000/02/06 New!
  46. Sleep Sleep 2000/05/20 New!
  47. MD5 Message Digest 2000/05/20 New!

TA的精华主题

TA的得分主题

 楼主| 发表于 2006-12-4 20:12 | 显示全部楼层

TA的精华主题

TA的得分主题

发表于 2012-11-19 11:18 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
用vba写的代码下载FTP文件  为什么有的电脑能下载,有的电脑能连上FTP但是下载不了,是不是和操作系统的设置有关?

TA的精华主题

TA的得分主题

发表于 2015-2-6 12:05 | 显示全部楼层
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

手机版|关于我们|联系我们|ExcelHome

GMT+8, 2025-12-14 06:29 , Processed in 0.025060 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

沪公网安备 31011702000001号 沪ICP备11019229号-2

本论坛言论纯属发表者个人意见,任何违反国家相关法律的言论,本站将协助国家相关部门追究发言者责任!     本站特聘法律顾问:李志群律师

快速回复 返回顶部 返回列表