home *** CD-ROM | disk | FTP | other *** search
- ; *****************************************************
- ; Example7.ftp
- ; =============
- ; This example RETRIEVES all .DAT files from a remote
- ; server's directory like:
- ; /mydata/files/*.*
- ; and ALL SUB-directories -
- ; and saves them in this local folder, building the same
- ; folderstructure locally as the one being retrieved:
- ; d:\MyData\Files
- ;
- ; NOTE: This is just a sample - you are unable to
- ; execute the script unchanged... ;o)
- ; *****************************************************
-
- ; ******* First provide the Login information...
-
- Host="ftp.yourhost.net"
- Port=21
- User="your-username"
- Password="your-password"
-
- ; ******* Timeout in seconds...
- Timeout=60
-
- ; ******* ...and then connect to FTP host...
- connect
-
- ; ******* Command sequence...
- Binary
- GetTree "/mydata/files/*.dat" "D:\MyData\Files"
-
- ; ******* Afterwards, disconnect from host!
- disconnect
-
-