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