home *** CD-ROM | disk | FTP | other *** search
/ CD Shareware Magazine 1999 April / CD_Shareware_Magazine_31.iso / WIN95 / INTERNET / ftpctrl3b8.exe / %MAINDIR% / Scripts / Example4.ftp < prev    next >
Encoding:
Text File  |  1999-02-07  |  1.1 KB  |  45 lines

  1. ; *****************************************************
  2. ; Example4.ftp
  3. ; =============
  4. ; This example sends the systems "Autoexec.bat" file to 
  5. ; a remote site and gives the file a unique name by
  6. ; implementing the DATE and TIME functions.
  7. ; This is just a sample - you are unable to execute
  8. ; the script unchanged... ;o)
  9. ; *****************************************************
  10.  
  11. ; ******* First provide the Login information...
  12.  
  13. ; DialEntry="xxxxxxx"
  14. ; DialLoginUser="xxxxxxx"
  15. ; DialLoginPassword="xxxxxxx"
  16. Host="ftp.transsoft.com"
  17. Port="21"
  18. User="anonymous"
  19. Password="you@your.net"
  20. ; Proxy=
  21. ; ProxyPort=21
  22.  
  23. ; ******* Timeout in seconds...
  24. Timeout=120
  25.  
  26. ; ******* ...Dial up if not already connected to the Internet...
  27. ; Dial
  28.  
  29. ; *******  ...and then connect to FTP host...
  30. connect
  31.  
  32. ; *******  Command sequence...
  33.  
  34. remote-cd  "/pub/incoming"
  35. if local-exists("c:\Autoexec.bat") then
  36.    ascii
  37.    send "c:\autoexec.bat" "autoexec_[DATE:yyyymmdd][TIME:hhmm].bat"
  38. endif
  39.  
  40. ; *******  Afterwards, disconnect from host!
  41. disconnect
  42.  
  43. ; *******  At last, Hangup Internet connection!
  44. ; Hangup
  45.