Quicklinks
Today, there are many FTP software packages available. However, most of these software tools are stand-alone packages, without scripting options. ActiveSocket is very well suited for scripting and embedding in applications.
Use the ActiveSocket Ftp object to script the following:
The Ftp object is part of the ActiveSocket component. Overview of all ActiveSocket objects:
Set objFtp = CreateObject ( "ActiveXperts.FtpServer" )
objFtp.Connect "ftp.activexperts-labs.com" , "", ""
WScript.Echo "Connect, result: " & objFtp.LastError
If( objFtp.LastError <> 0 ) Then
WScript.Quit
End If
WScript.Echo objFtp.GetCurrentDir
Set objFtpFile = objFtp.FindFirstFile()
While ( objFtp.LastError = 0 )
WScript.Echo "File: " & objFtpFile.Name
WScript.Echo " Size: " & objFtpFile.Size
Set objFtpFile = objFtp.FindNextFile ()
Wend
objFtp.Disconnect
WScript.Echo "Ready."
On ftp.activexperts-labs.com, you can find a lot of ActiveSocket samples. These samples are also part of the ActiveSocket installation.
Visit ftp.activexperts-labs.com