home *** CD-ROM | disk | FTP | other *** search
/ Internet Tools (CDV) / cdv_internet_tools.iso / KATALOG / ARCHIV / PROG / W21126.ZIP / example.psu next >
Encoding:
Text File  |  1998-05-25  |  741 b   |  30 lines

  1. ;This is an example of how to use PSU
  2. ;<- Comment line
  3.  
  4. OPEN myhost,myname:mypassword
  5. ;try to open a connection to myhost
  6. ;Alternatively: OPEN %hostname%,%myname%:%mypassword% if information is 
  7. ;specified on the commandline.
  8.  
  9.   PUT C:\myhomepage1\index.html
  10. ;put the file on the ftpserver
  11.  
  12.   CHDIR information
  13. ;change directory (create it first if it does not exist)
  14.  
  15.   RECURSE ON
  16. ;turn on directory recursion (alternatively use -r on the commandline)
  17.  
  18.   UPDATE NEWER
  19. ;overwrite files only if they are changed
  20.  
  21.   MPUT C:\myhomepage2\*.*
  22. ;put all files from the specified directory and subdirectories to the ftp-
  23. ;server, creating directories as needed.
  24.  
  25. CLOSE
  26. ;close connection to myhost
  27.  
  28. ;end of EXAMPLE.PSU
  29.  
  30.