home *** CD-ROM | disk | FTP | other *** search
/ CD Shareware Magazine 1999 April / CD_Shareware_Magazine_31.iso / WIN95 / INTERNET / ftpctrl3b8.exe / %MAINDIR% / Scripts / Example1.ftp next >
Encoding:
Text File  |  1999-02-07  |  749 b   |  33 lines

  1. ; *****************************************************
  2. ; Example 1.ftp
  3. ; =============
  4. ; This example simply connects to TransSoft's FTP site,
  5. ; renames a local file and sends it.
  6. ; *****************************************************
  7.  
  8.  
  9. ; ******* First provide the Login information...
  10.  
  11. Host="ftp.transsoft.com"
  12. Port="21"
  13. User="anonymous"
  14. Password="you@your.net"
  15.  
  16. ; ******* Timeout in seconds...
  17. Timeout=60
  18.  
  19. ; *******  ...and then connect to FTP host...
  20. connect
  21.  
  22. ; *******  Command sequence...
  23. Local-rename "c:\myfile.dat" "c:\filetosend.dat"
  24. remote-cd "/pub"
  25. send "c:\filetosend.dat" "newfile.dat"
  26.  
  27. ; *******  Afterwards, disconnect from host!
  28. disconnect
  29.  
  30. ; *******  At last, Hangup Internet connection!
  31. ; Hangup
  32.  
  33.