home *** CD-ROM | disk | FTP | other *** search
/ Copernicus 1996 #3 / Image.iso / program / internet / uue100.exe / UUE.DOC < prev    next >
Encoding:
Text File  |  1995-09-09  |  14.0 KB  |  403 lines

  1. Batch Encoder Version 1.00 for DOS
  2. By Jeff Lee
  3.  
  4. Released: 09/09/95
  5.  
  6. Introduction
  7. ------------
  8. Welcome to the first ever (at least to my knowledge) batch 
  9. UUEncoder!  This program was primarily written for my own 
  10. purposes because I got terribly tired of uuencoding each file in 
  11. a directory manually.  You probably know the feeling.. Type 
  12. uuencode dog.. Wait for it to finish.. Type uuencode cat.. Wait 
  13. for it to finish.. etc..  Even worse were the directories full of them!
  14. Well, with this program, if you know how to use DOS 'dir' you 
  15. know how to use UUE!  The reason for this is that UUE can 
  16. accept all standard DOS wildcards.  In the next couple of 
  17. sections, you'll learn how to use UUE and use it to its 
  18. maximum potential.
  19.  
  20.  
  21. What is a wildcard?
  22. -------------------
  23. For those of you who have no idea what a wildcard is, it is 
  24. defined in THE COMPUTER GLOSSARY by Alan FREEDMAN as "symbols 
  25. used to represent any value when naming files".  Others of you 
  26. may know it as the symbols '*' and '?' used in the DOS DIR 
  27. command.  Basically, it makes it easier to group items toghther. 
  28.  Although the '*' and the '?' are both wildcards, they have 
  29. slightly different functions.  Here, I'll show you what I mean 
  30. with a couple of examples.  Lets say you had the following 
  31. directory:
  32.  
  33. C:\>DIR
  34.  
  35.  Volume in drive D is STACVOL_000
  36.  Directory of D:\DOWNLOAD
  37.  
  38. .            <DIR>     03-07-93   9:20p
  39. ..           <DIR>     03-07-93   9:20p
  40. ALLDOOM      <DIR>     03-02-94   7:34p
  41. EMS          <DIR>     02-12-94   8:38a
  42. FNTLIN10     <DIR>     03-28-93   2:37p
  43. GUI          <DIR>     02-17-94   7:15a
  44. ISSUE15      <DIR>     05-26-94   1:11p
  45. WMP          <DIR>     08-28-93   4:05a
  46. ARMADA   ZIP    219340 06-01-94   3:13p
  47. BRISCOJR ZIP     87031 05-29-94   8:00a
  48. DMAREACD ZIP      3362 03-02-94   3:01p
  49. DOOMV55  FAQ    142039 02-24-94   6:20p
  50. DOOMV55  ZIP     49793 02-26-94   4:22p
  51. EMSCL13  ZIP     20593 02-12-94   8:20a
  52. EZDB     ZIP     49271 02-26-94   6:52p
  53. FBTRNS   ZIP      7880 05-27-94   4:27p
  54. GAMMA    ZIP     91486 02-21-94  10:27p
  55. GIF_LIBL LIB     25600 02-20-94   5:39p
  56. GUI      ZIP    199857 02-17-94   7:14a
  57. HOWTOVC  TXT     28422 02-26-94   6:54p
  58. ISSUE15  ZIP    629578 05-26-94   1:02p
  59. NUSER    EXE     36687 02-23-94   7:31p
  60. NUSER    ZIP     19328 02-26-94   4:01p
  61. PROMODEM ZIP     65637 02-20-94   5:35p
  62. SYSSHOK  ZIP    159176 06-01-94   3:16p
  63. UNPROT   BAS         2 07-07-87  10:01a
  64. UNPROT   DOC      1476 07-07-87   9:56a
  65. UNPROT   ZIP       939 03-03-94   9:34p
  66. VOCFMAT  TXT      6212 02-12-94   2:47p
  67. UUCODE   ZIP      5289 06-09-94   7:09p
  68. DIRLIST              0 06-11-94  12:05p
  69. ASP          <DIR>     06-10-94   2:34p
  70.        32 file(s)    1848998 bytes
  71.              9142272 bytes free
  72.  
  73. You could use a command like "dir *.zip" to view all the .zip 
  74. files as so:
  75. C:\>dir *.zip
  76.  
  77.  Volume in drive D is STACVOL_000
  78.  Directory of D:\DOWNLOAD
  79.  
  80. ARMADA   ZIP    219340 06-01-94   3:13p
  81. BRISCOJR ZIP     87031 05-29-94   8:00a
  82. DMAREACD ZIP      3362 03-02-94   3:01p
  83. DOOMV55  ZIP     49793 02-26-94   4:22p
  84. EMSCL13  ZIP     20593 02-12-94   8:20a
  85. EZDB     ZIP     49271 02-26-94   6:52p
  86. FBTRNS   ZIP      7880 05-27-94   4:27p
  87. GAMMA    ZIP     91486 02-21-94  10:27p
  88. GUI      ZIP    199857 02-17-94   7:14a
  89. ISSUE15  ZIP    629578 05-26-94   1:02p
  90. NUSER    ZIP     19328 02-26-94   4:01p
  91. PROMODEM ZIP     65637 02-20-94   5:35p
  92. SYSSHOK  ZIP    159176 06-01-94   3:16p
  93. UNPROT   ZIP       939 03-03-94   9:34p
  94. UUCODE   ZIP      5289 06-09-94   7:09p
  95.        15 file(s)    1608560 bytes
  96.              9142272 bytes free
  97.  
  98. The reason for this is because the '*' symbol means basically 
  99. 'all'.  So, when you type in "DIR *.zip", you basically are 
  100. telling the computer to display any and all files with any 
  101. filename, with a .ZIP extention.  You can reverse this as well.  
  102. Doing a DIR NUSER.* would output:
  103.  
  104. C:\>dir nuser.*
  105.  
  106.  Volume in drive D is STACVOL_000
  107.  Directory of D:\DOWNLOAD
  108.  
  109. NUSER    EXE     36687 02-23-94   7:31p
  110. NUSER    ZIP     19328 02-26-94   4:01p
  111.     2 file(s)      56015 bytes
  112.              9166848 bytes free
  113.  
  114. A final use of it would be to find files starting with a letter, 
  115. or group of letters.  Take a guess at what DIR G*.* would do:
  116.  
  117. C:\>dir g*.*
  118.  
  119.  Volume in drive D is STACVOL_000
  120.  Directory of D:\DOWNLOAD
  121.  
  122. GUI          <DIR>     02-17-94   7:15a
  123. GAMMA    ZIP     91486 02-21-94  10:27p
  124. GIF_LIBL LIB     25600 02-20-94   5:39p
  125. GUI      ZIP    199857 02-17-94   7:14a
  126.     4 file(s)     316943 bytes
  127.              9166848 bytes free
  128.  
  129. Get it?  Not that hard right?  The G*.* meant all files beginning 
  130. with G with any extention.  The '?' symbol is similiar to the '*' 
  131. except that it replaces only 1 letter, instead of an entire 
  132. filename or exention.  This becomes useful when you don't want 
  133. all the files matching a '*' specification.  Lets say we only 
  134. wanted the files that had 3 letters in their filename not 
  135. including extention.  We would do the following:
  136.  
  137. C:\>dir ???.zip
  138.  
  139. As expected, the following would occur:
  140.  
  141.  Volume in drive D is STACVOL_000
  142.  Directory of D:\DOWNLOAD
  143.  
  144. GUI      ZIP    199857 02-17-94   7:14a
  145.     1 file(s)     199857 bytes
  146.              9166848 bytes free
  147.  
  148. Well, that about covers everything with wildcards.  Just in case 
  149. you didn't know, many DOS commands accept wildcards.  As shown 
  150. here, DIR allows it.  Others include COPY, MOVE, XCOPY, ATTRIB, 
  151. and many more.  Now that you have a general idea of there usage, 
  152. lets use this knowledge to use UUD.
  153.  
  154.  
  155. Usage
  156. -----
  157. If you're here, I assume you either read the section on 
  158. WILDCARDS, or you already know how to use them.  Like I said 
  159. before, UUE has much the same format as dir in the sense that UUE 
  160. accepts wildcards.  For instance, if you had a directory full of 
  161. UUENCODED files, all you would have to do is:
  162.  
  163. UUE *.*
  164.  
  165. and voila!  All the files will automatically be Encoded!  UUE 
  166. also recognizes the '?' wildcard.  So, lets say you had a 
  167. directory of files names FILE.000-FILE.500.  You could easily 
  168. encode only FILE.000-FILE.009 by using:
  169.  
  170. UUE FILE.00?
  171.  
  172. See how easy it is?  Of course, you can also encode one file at 
  173. a time like so:
  174.  
  175. UUE FILE.000
  176.  
  177.  
  178. SWITCHES
  179. --------
  180. UUE [options] filenames [output directory]
  181. Things in [] are optional.
  182.  
  183. [Options]:
  184.  
  185. -? or -h
  186. Brings up the help screen giving brief details on how 
  187. to use them.  Also displays any options that are
  188. default on.
  189.  
  190. -v
  191. Verbose Mode.  The program will display all files 
  192. that have been processed instead of showing the most 
  193. recent processed file.
  194.  
  195. -e#
  196. Encoding mode.  This setting tells the encoder which type of Encoding
  197. to use.  1=UUEncode(default), 2=XXEncode, 3=MIME(base 64) Encoding
  198.  
  199. -s#
  200. Number of lines per section.  This tells the encoder how many lines
  201. of Encoded information to be allowed in each section.  If this option
  202. is not used, it defaults to UNLIMITED number of lines.  In other words,
  203. no matter how long the file may be, UUE will fit it all into one file.
  204. If you use the -s option alone, without a number, UUE will default to 950
  205. lines of Encoded info.  A number may be specified to override both options
  206. i.e. -s500 (500 lines of encoded info per section)
  207.  
  208. -n
  209. Disables Alphabetical sorting.  All files will be 
  210. processed in the order they appear in the directory.
  211.  
  212. -o
  213. Overwrite All Existing Files.  When UUE encodes, it 
  214. usually checks to make sure the new file being 
  215. created will not overwrite an existing file.  If -o 
  216. is used, it will not ask for permission but just 
  217. write over them.
  218.  
  219. -d"directory"
  220. Where "directory" is, is a valid directory anywhere or anyplace on your
  221. computer.  This argument specifies the directory in which the files will
  222. be encoded to.  This has the same effect as using the "output directory"
  223. as the last argument.
  224.  
  225. -k
  226. This installs the "break out" key (Control-Break).  Its very useful when
  227. you find that UUE hangs on certain files.
  228.  
  229. Filenames:
  230. This can include as many files as you like, all which can take 
  231. wildcards.  You could do:
  232.  
  233. UUE dog*.* cat*.* bird*.* cow*.*
  234.  
  235. UUE will gather up all the files that match the file specifications,
  236. and then, according to switches, alphabatize or leave them alone.
  237.  
  238. [output directory]:
  239. Internally, all UUE does with this is convert it into a -d argument.  Refer
  240. to that argument for more info.
  241.  
  242.  
  243. The Configuration File
  244. ----------------------
  245. The configuration file is a simple means of saving defaults that UUE can
  246. later recall.  To create one, or edit the one provided with UUE, all you
  247. have to do is seperate each new command with a return.  Once completed
  248. and to your satisfaction, you MUST PLACE "UUD.CFG" ALONG THE PATH, or UUE
  249. WILL NOT FIND IT.  Here's an example UUD.CFG:
  250. -v
  251. -o
  252. -dd:\encodes
  253.  
  254. By creating this file, UUE will automatically activate Verbose Mode,
  255. Overwrite Mode, and encode all files to the directory "D:\encodes".
  256.  
  257. If, at any time you want to disable some of these options, simply reuse
  258. that command on the command line when using UUD.  Example using the UUD.CFG
  259. mentioned above:
  260. UUE -v -d *.*
  261.  
  262. This command would disable verbose mode and disable the output directory while
  263. leaving Overwrite on.
  264.  
  265. You can view what options are on at any time by just doing a "UUE /?".
  266.  
  267.  
  268. REGISTRATION of UUE
  269. -------------------
  270. Think back.. Way back.. To the point in time where you were a 16
  271. year old kid in High School.  Remember how much money meant to 
  272. you?  Now think about me.  I currently am 16 and, like you at 
  273. that time, value money A LOT.  That's why I'm placing this 
  274. program in here as SHAREWARE.  Unlike all those big guys who 
  275. charge 30-40 buckaroos for a simple program, I'm asking for only 
  276. a measly 18 that's EIGHTteen dollars.  
  277.  
  278. If you liked this program, 
  279. I would really REALLY appreciate it if you payed the Registration
  280. fee.  If you can't afford to pay the registration fee, let me know 
  281. you exist, and I'll send it to you EMAIL ONLY free.  I'm basing this 
  282. policy on your HONESTY.
  283.  
  284.  
  285. WHAT DO I GET WHEN I REGISTER??!!
  286. ---------------------------------
  287. Well, first of all and most importantly, you get my never ending 
  288. thanks :).  I would be so grateful that if I were able to fly out 
  289. to wherever you live, I'd give you a big smack on the cheek and 
  290. ask you if you had a NICE, TEENage DAUGHTER that doesn't 
  291. currently have a boyfriend..  Just kidding! (although that would 
  292. be nice).
  293.     Seriously, I'll send you the registered version either by 
  294. EMAIL or SNAIL MAIL whichever you choose.  You'd get FREE 
  295. upgrades to the program for as long as I update this thing.  You would also 
  296. have the option to BETA test for me if you want.  Trust me, you 
  297. don't want to miss out on the upcoming versions!  Upgrades to
  298. registered users will come through EMAIL only.
  299.  
  300.  
  301. HOW DO I REGISTER??!!
  302. ---------------------
  303. If you have a printer, print the file "ORDER.DOC"
  304.  
  305. If you don't have a printer -
  306. First, you would make a check or money order out to "Jeff Lee".
  307. Then, you would send that to:
  308.  
  309. Carrot Utilities
  310. 15284 Karl Ave
  311. Los Gatos, CA 95030
  312.  
  313. Lastly, Be sure to specify either EMAIL or SNAIL MAIL.  Whatever it is,
  314. be sure to include your NAME, ADDRESS, EMAIL ACCOUNT, and DISK SIZE.
  315.  
  316.  
  317. SHAREWARE CATALOGS
  318. ------------------
  319. I'd be glad for any and all Shareware Catalogs to incorporate 
  320. this program into their catalog or software library of some sort. 
  321. I'm not asking any money from you, but I AM asking you to TELL 
  322. ME if you do include this in a catalog.  You need my written
  323. permission to encorporate UUE into your product line.  After all, 
  324. at 16 I'm looking for things to stick on my Resume, and having 
  325. a piece of software published (kinda) would be a very unique thing!
  326.  
  327.  
  328. REPORTING BUGS
  329. --------------
  330. This is a very important asset to me, especially if you find that
  331. UUE encoded a file incorrectly  I need people to tell me if they
  332. encounter any misspellings, bugs, etc. in the program.  If possible, send me 
  333. the files you were trying to encodE.  Send them to me at the 
  334. EMAIL addresses that appear in the next section.  Not only will I 
  335. be deeply gratified (almost as much as you paying the 
  336. registration fee), but I'll be extremely happy as well.
  337.  
  338.  
  339. WHERE CAN I UPLOAD PROBLEM FILES
  340. --------------------------------
  341. 1) You can upload them to my FTP site at FTP.NETCOM.COM in the
  342. pub/ts/tsngonzo/incoming directory.
  343. 2) You can attach them to a EMAIL message and send it to me
  344. THROUGH MY NETCOM ACCOUNT.
  345.  
  346.  
  347. WHERE TO REACH THE AUTHOR
  348. -------------------------
  349. Well, I'm basically everywhere:
  350.  
  351. America On-line:        TSNGonzo                        <----2nd preferred
  352. Compuserve:             70740,2337                      <----Least preferred
  353. Internet:               TSNGonzo@Netcom.com             <----Preferred
  354.  
  355.  
  356. TROUBLESHOOTING AND EVERYDAY QUESTIONS
  357. --------------------------------------
  358. When I try to run UUE from the program manager, all that happens is the screen
  359. flashes and then UUE returns me back to windows
  360.  
  361. Well, first of all, UUE is not a Windows program.  It requires the use of
  362. arguments passed on the command line.  Read this manual or type in just 'UUE'
  363. while in DOS or a DOS box.
  364.  
  365.  
  366. The Computer is talking to me now!
  367.  
  368. How'd that happen.. I know i'm a good programmer.. I'm not THAT 
  369. good.  Check to make sure your keyboard is plugged in backward so 
  370. that the oscillating chip within the computer can put the demons 
  371. away.
  372.  
  373.  
  374. Why doesn't UUE fax anything?
  375.  
  376. Try putting the sheet of paper you want to fax up to the monitor. 
  377. Make sure the monitor has plenty of static so the paper will 
  378. stick!
  379.  
  380.  
  381. What's wrong with the author?
  382.  
  383. Right now, he's in deep mourning over the cancellation of Star 
  384. Trek: The Next Generation.  Since Voyager is on, he's a little better.
  385. Your registration would make him feel ALOT better though!
  386.  
  387.  
  388. DISCLAIMER
  389. ----------
  390. Ok.. I don't want anyone sueing me because this program messed 
  391. them bad or anything.  Although this program has been tested 
  392. thorougly by the author, I make no guarantee it will work 
  393. correctly on all systems.  If it messes you up, TOUGH - that's
  394. your problem.
  395.  
  396.  
  397.  
  398. All in all, I hope this program isn't TOO hard to learn.  I tried 
  399. to make it as simple as possible.
  400.  
  401. BYE!! REMEMBER TO REGISTER THIS PROGRAM!!
  402.  
  403.