| KJA Home
Web Toys
Activex Components
Support Forum
Contact Us
Links & Resources
|
|
KFTP Component:
Download Demo Buy
It Now - Instant Download! |
|
|
| This component requires the VB6 Runtime.
Download the VB6 Runtime Here.
The kftp component is an activex component is a simple interface to FTP from
your ASP, VB, or VBSCRIPT program. We use this component extensively for
automating ftp data transfers on a scheduled basis, although you might find
other uses like batch uploading your developement pages, or 'crawling' ftp
sites. The command set is limited because we simply don't need to execute
every function via automation - only the most important ones. |
| Features: |
-
Ftp GET, PUT functionality. Upload or download files easily with one line.
-
Directory listing. This component will return a remote directory as an array.
|
| Download Demo:
sw_kftp.zip
Release Notes:
-
This component is written in
Microsoft Visual Basic 6.0.
-
MSIE must be installed. (
http://www.microsoft.com/ )
-
You will need the VB 6.0 Runtime files. You can
download them here VB
6.0 Runtime
-
If you receive this error "ActiveX Component Can't
Create Object" Then download this file - Place
it in a temp folder and double click it to run. This corrects a registry
issue.
|
|
| You can download a functional demo. The demo allows unlimited usage,
but limits the amount of data returned from sites to files of 100 bytes or
less. FILES LARGER THAN 100 BYTES WILL NOT BE SAVED. Order the full
version to remove this limit, and to let me know you want to see future
updates/features/support/more new software/etc. |
|
|
|
KFTP Component:
Download Demo Buy
It Now - Instant Download!
License Agreement
|
|
| USAGE: |
|
| PROPERTIES - NONE |
|
| METHODS |
RETURN VALUE |
| .getFile(host,username,password,localFile,remoteFile) |
string |
| copies "remoteFile" to "localFile" where "remoteFile" is a valid file
path on the "host" ftp server and "localFile" is a valid path on your local
machine.
example:
-
host - a valid ftp server like "ftp.yourdomain.com"
-
username - the ftp username for your site
-
password - the ftp password for your site
-
localFile a valid path on your local server like "C:\myFile.txt"
-
remoteFile - a valid path on your ftp server like "/images/logo.jpg" or
"/logo.jpg"
sample usage:
dim inet
Set inet = createObject("kftp.inet")
dim host,username,password,localFile,remoteFile
host = "www.yourdomain.com"
username = "your_username"
password = "your_password"
localFile = "c:\test.txt"
remoteFile = "/test.txt"
call inet.getFile(host, username, password, localFile, remoteFile)
set inet = nothing
|
Descriptive message if error occurs or "" on success |
| .putFile(host,username,password,localFile,remoteFile) |
string |
| copies "localFile" to "remoteFile" where "remoteFile" is a valid file
path on the "host" ftp server and "localFile" is a valid path on your local
machine.
example:
-
host - a valid ftp server like "ftp.yourdomain.com"
-
username - the ftp username for your site
-
password - the ftp password for your site
-
localFile a valid path on your local server like "C:\myFile.txt"
-
remoteFile - a valid path on your ftp server like "/images/logo.jpg" or
"/logo.jpg"
sample usage:
dim inet
Set inet = createObject("kftp.inet")
dim host,username,password,localFile,remoteFile
host = "www.yourdomain.com"
username = "your_username"
password = "your_password"
localFile = "c:\test.txt"
remoteFile = "/test.txt"
call inet.putFile(host, username, password, localFile, remoteFile)
set inet = nothing
|
Descriptive message if error occurs or "" on success |
| .getDirectory(host,username,password,directory) |
variant array |
| This method returns the file list for a given remote ftp directory. The
result is an array of filenames.
sample usage:
dim inet
Set inet = createObject("kftp.inet")
dim host,username,password
host = "www.yourdomain.com"
username = "your_username"
password = "your_password"
directory = "/images/"
dim i,sp
sp = inet.getDirectory(host,username,password,directory)
for i = 1 to ubound(sp)
response.write i & " : " & sp(i) & vbCrLf
next
set inet = nothing
|
|
|