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

  1. ; *****************************************************
  2. ; Example15.ftp
  3. ; =============
  4. ; This example shows how to access the command line  
  5. ; parameters to create a FTP "Send-To" menu in
  6. ; Windows Explorer (File Manager)!
  7. ; To create such an entry, please edit this example to 
  8. ; access your own FTP server where you have complete
  9. ; "Write" authentication.
  10. ; THEN: Use the "Power" menu to create a "Send-To"
  11. ; Menu item.
  12. ; -----------------------------------------------------
  13. ; NOTE: This is just a sample - for your information ;o)
  14. ; *****************************************************
  15.  
  16. ; ******* First provide the Login information...
  17.  
  18. Host="ftp.yourhost.net"
  19. Port="21"
  20. User="your.username"
  21. Password=" INK-n:┤LLJN-? "
  22.  
  23. ; ******* Timeout in seconds...
  24. Timeout=120
  25.  
  26. ; *******  ...and then connect to FTP host...
  27. connect
  28.  
  29. ; *******  Command sequence...
  30.  
  31. binary 
  32.  
  33. Input SendType "Type the word: 'ascii' if you want ASCII transfer:"
  34.  
  35. %%SendType%%
  36.  
  37. remote-cd  "/myfiles"
  38.  
  39. ALLPARAMS send "%%ALLPAR%%" "%%NamePar%%"
  40.  
  41. ; Now disconnect from FTP server...
  42. Disconnect
  43.