Using FTP OLE Automation

image\rwnprg32.gif Downloadable Sample Scripts

 

FTP OLE Automation sample scripts are available on WRQ's Download Library.

· Findfile.htm—this Microsoft VBScript sample runs from the Internet Explorer browser, version 3.0 or later. The script connects to an FTP server and returns the location of a specified server file.

· Findfile.bas—this Microsoft Visual Basic for Applications sample connects to an FTP server and returns the location of a specified server file.

· Findfile.rbs—this Reflection Basic sample connects to an FTP server and returns the location of a specified server file.

· Upload.htm—this Microsoft VBScript sample runs from the Internet Explorer browser, version 3.0 or later. The script connects to an FTP server and transfers a specified local file to that server.

Click the link below to for information about downloading these files:

image\weblink.gif

To learn more about a sample script, open it in your Visual Basic editor or view the source from your Internet Explorer browser. Each of the sample scripts includes a "program header," a block of comments at the top of the script that describes what the script does, as well as "function headers," comments at the beginning of each subprocedure and function that describe what the procedure does. The Main subprocedure of the sample scripts always appears at the end of the script, so that other subprocedures and functions do not need forward declarations with the Declare statement.