home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / get107.zip / readme < prev   
Text File  |  1999-04-20  |  8KB  |  190 lines

  1. April 2, 1999
  2.  
  3. get.exe is copyright of keith cotroneo, 1997-99.
  4. All Rights Reserved.
  5. Please treat it accordingly.
  6. If you choose to use get.exe, you do so at your
  7. own risk. I guarantee nothing, and you agree to
  8. hold me harmless for any damages associated with
  9. its use.
  10.  
  11. I would appreciate your suggestions and feedback. Get.exe is the
  12. first step in a broader project. The intent of the project
  13. is to provide ftp capability as an add on to applications
  14. that people develop. I had to figure out the ftp stuff first,
  15. before moving on.
  16.  
  17. You can use get.exe to add external ftp capabilities to
  18. applications. To do so, you must call get.exe from your
  19. pplication and use the right get paramters.
  20.  
  21. get.exe is tiny, powerful batch ftp program. You
  22. can use it to automate uploads to or downloads from ftp sites and
  23. perform several functions on a remote server. With the
  24. included getit.exe, you can use get to automate downloads
  25. from popular email clients like MR2 ICE.
  26.  
  27. If you find get.exe useful and use it for more than 30 days,
  28. or would like to include it in your applications (you may not
  29. distribute with your applications without my permission).
  30. You may register it for personal use by sending me $10.00.
  31. including your name, address, and email address.
  32. You may register it for commercial use by sending me $30.00.
  33. including your name, address, and email address.
  34.  
  35.  
  36. Please share your ideas and thoughts with me.
  37.  
  38. Keith Cotroneo
  39. 716 Monterey Drive
  40. Endwell, NY 13760
  41.  
  42. cotroneo@stny.rr.com
  43.  
  44.  
  45. Changes in version 1.07:
  46. Functions now recognize a drive designator in the remotefile parameter.
  47. For example:
  48. get -l cotroneo.stny.com/e:/new NULL anonymous anonymous@anonymous.com
  49. will get the directory list for the e:/new directory on a drive. Previous
  50. version of get did not allow drive designators.
  51. Also, added significant speed enhancements.
  52.  
  53. Changes in version 1.06:
  54. The archive now includes getit.exe to simplify the download process.
  55. Added -s paramter for date sorted directory listing - most recent files first.
  56.  
  57. GETIT.EXE:
  58.  
  59. get106.zip archives and beyond contain the main app get.exe written in C.
  60. It also contains getit.exe, a compiled rexx program. getit.exe calls get.exe
  61. and is useful if you want to use get.exe in email programs such as MR ICE.
  62. You can reference getit.exe as the ftp client in MR ICE and
  63. use it to download programs from your email window. Make sure that the text file
  64. GPATH contains your download path. Also, make sure that get.exe and gpath are
  65. in a path referenced in your config.sys. The path contained in gpath must NOT contain
  66. a / at the end of the path.
  67.  
  68. Example -
  69. If GPATH = c:/test then
  70.  
  71. getit hobbes.nmsu.edu/pub/incoming/00index.txt
  72. will download 00index.txt and place it in the c:\test directory
  73.  
  74. If you include a download path as the second parameter to getit, the download path
  75. in GPATH will be overwritten.
  76.  
  77. Example -
  78. If GPATH = c:/test then
  79.  
  80. getit hobbes.nmsu.edu/pub/incoming/00index.txt c:/new
  81. will download 00index.txt and place it in the c:\new directory
  82.  
  83.  
  84. GET.EXE:
  85.  
  86. Use of get is simple. It takes the following command line
  87. parameters:
  88.  
  89. ftpparamter remoteftpsite/remotedirectory/fileyouwant localdirectory\localfilename username password
  90.  
  91. The ftpparameters are:
  92.  
  93. -a append a file - this is a reget type function. -a will check the file size of the local machine
  94. specified by the localdirectory\localfilename parameter against the file size of the remote file
  95. specified by the fileyouwant parameter. If the fileyouwant is larger than the local file, the download
  96. will append the missing bytes, starting from the local file size.
  97.  
  98. -d delete a file - will delete the fileyouwant. The localdirectory\localfilename parameter is ignored, but
  99. something must be specified in the localdirectory\localfilename parameter to keep things consistent. The
  100. word NULL will do.
  101.  
  102. -g get a file - downloads the file specified by the remoteftpsite/remotedirectory/fileyouwant parameter to
  103. the localdirectory\localfilename parameter.
  104.  
  105. -l list files - lists files to the screen as specified by the remoteftpsite/remotedirectory/fileyouwant
  106. parameter. *.* will get the full list.
  107.  
  108. -p put a file - uploads the localdirectory\localfilename to the remoteftpsite/remotedirectory/fileyouwant
  109. location.
  110.  
  111. -r rename a file - renames the remoteftpsite/remotedirectory/fileyouwant to the file specified in the
  112. localdirectory\localfilename parameter location.
  113.  
  114. -s list files sort order (date) - lists files to the screen as specified by the
  115. remoteftpsite/remotedirectory/fileyouwant parameter in sort order from newest to oldest. *.*
  116. will get the full list. -s uses LIST -lt on the server. It should work with most unix servers.
  117.  
  118. Additional options:
  119.  
  120. ? - You may substitute a ? for the localdirectory\localfilename when doing a download. In this case
  121. get.exe will use the filename from the remoteftpsite/remotedirectory/fileyouwant parameter as
  122. the filename for the download.
  123.  
  124. NULL - Use NULL in place of localdirectory\localfilename when doing a -l list or -s list.
  125.  
  126. Anonymous logon - if you leave ther USER and PASSWORD off, get will attempt anonymous logon.
  127.  
  128. You can also direct the get.exe client/server dialogue to a text file for perusal afterwords.
  129. To do so, call get from a .cmd file like this:
  130.  
  131. getfile > output.txt
  132.  
  133.  
  134. In the above example, gefile is getfile.cmd which contains the appropriate get command line.
  135. output.txt will have all the server/client dialogue instead of it appearing on the screen
  136. in the vio session.
  137.  
  138. Command files are also useful with the MORE command. For example, the getdir.cmd file and
  139. getsort.cmd, included in the archive will direct directory lists to the screen.
  140.  
  141. getdir | more
  142.  
  143. The above command will page the listing one screen at a time.
  144.  
  145. getdir and getsort are currently set up for the hobbes download directory. Modify them to
  146. get the directory listing you want.
  147.  
  148.  
  149. Here are some examples of how to use get.exe:
  150.  
  151.  
  152. get -g hobbes.nmsu.edu/pub/incoming/00index.txt c:\new\hobbes.txt anonymous -anonymous@anonymous.com
  153.  
  154. will logon to the hobbes ftp site and get the file 00index.txt from the
  155. /pub/incoming directory. It will place the file in the c:\new directory with
  156. the name hobbes.txt. Anonymous is the username for logon. Change this to
  157. your username for the ftp site. Anonymous@anonymous.com is the password.
  158. Change this to your password if needed. The - before the password tells the
  159. ftp site to use cryptic return messages so that you don't see all the welcome
  160. stuff. This only works on some servers. If you do not supply a username and password,
  161. get will attempt to logon anonymously.
  162.  
  163. get -d hobbes.nmsu.edu/pub/incoming/00index.txt NULL anonymous -anonymous@anonymous.com
  164.  
  165. will delete 00index.txt from the hobbes incoming directory (if allowed - actually hobbes does not allow
  166. deletion). The localdirectory\localfilename parameter is unnecessary here, but something must be there
  167. to keep the program straight. NULL is used in this case.
  168.  
  169. get -r hobbes.nmsu.edu/pub/incoming/00index.txt newindex.txt anonymous -anonymous@anonymous.com
  170.  
  171. will rename the remote file in remoteftpsite/remotedirectory/fileyouwant to the filename specified
  172. in the localdirectory\localfilename parameter. In this case 00index.txt is renamed to newindex.txt.
  173. newindex.txt is not a local file, it is the new name for the remote file. Hope this isn't confusing.
  174.  
  175. get -a hobbes.nmsu.edu/pub/incoming/00index.txt c:\new\hobbes.txt anonymous -anonymous@anonymous.com
  176.  
  177. will do an append download the file 00index.txt in the hobbes incoming directory to your local
  178. machine using REGET. If the file hobbes.txt on your C:\ drive in \new is smaller than the file
  179. on the remote machine, the difference in bytes are appended to the local file. This is useful if
  180. you are doing a big download that becomes interrupted. Instead of having to start over, you can
  181. only get the missing data.
  182.  
  183. get -p hobbes.nmsu.edu/pub/incoming/00index.txt c:\new\hobbes.txt anonymous -anonymous@anonymous.com
  184.  
  185. will upload the file hobbes.txt as 00index.txt in the hobbes pub/incoming directory.
  186.  
  187. You can string together several downloads by placing the get command and
  188. parameters in an os/2 command file. Several .cmd are provided in this archive
  189. as examples.
  190.