home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / ibm / pc / misc / 15831 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.9 KB  |  42 lines

  1. Newsgroups: comp.sys.ibm.pc.misc
  2. Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!silver.ucs.indiana.edu!mellman
  3. From: mellman@silver.ucs.indiana.edu (Bill Mellman)
  4. Subject: Re: HOW 2... PC Batch Programming
  5. Message-ID: <BzBJ8E.Kx9@usenet.ucs.indiana.edu>
  6. Sender: news@usenet.ucs.indiana.edu (USENET News System)
  7. Organization: Indiana University
  8. References: <8k-rv8c@lynx.unm.edu>
  9. Date: Tue, 15 Dec 1992 20:50:38 GMT
  10. Lines: 30
  11.  
  12. In article <8k-rv8c@lynx.unm.edu> graves@jemez.eece.unm.edu (John Graves) writes:
  13. >I'm frustrated...
  14. >
  15. >Is it just me, or is DOS Batch worthless.?..
  16. >
  17. >Is there a way to read input from a user(More than 1 char) and put
  18. >it into a var?
  19. >
  20. >I have Norton Batch Enhancer, but this isn't much of an enhancement.
  21. >
  22. >Is there a way to extract characters from a variable? ie array $1[5]?
  23.  
  24.  
  25. There are three excellent programs (two of which were written by one of 
  26. my best friends).  The first is called BATENV; it prompts the user for
  27. data which it stores in an environment variable (it does some other
  28. neat things too).  Next is BATGET which sets an errorlevel based on
  29. user input.  BATGET accepts single chars or words from a list.  BATGET
  30. is MUCH more powerful than ASK.  Finally there is some other program
  31. out there called STRINGS (I don't know who wrote it).  STRINGS
  32. can parse environment vars for substrings.  BATENV and BATGET (written
  33. by my friend) should be available via CompuServe.  I will ask my
  34. friends permission to post them to some place like Splicer.  Sorry I
  35. forgot where I got STRINGS, but it's probably on Splicer
  36. (splicer.cba.hawaii.edu) or WuArchive (wuarchive.wustl.edu).
  37. -- 
  38. ..............................................................................
  39. Bill Mellman   e-mail: MELLMAN                              Bitnet Node: IUBACS
  40. Computer Facilities Coordinator              Internet:  mellman@ucs.indiana.edu
  41. ...........Indiana University - Halls of Residence - (812) 855-5344...........
  42.