Tech Support > Operating Systems > MS-DOS > User Input inserted into a text file.
User Input inserted into a text file.
Posted by joedaddyC44A@gmail.com on February 7th, 2006


I'd like to create a batch file that would ask the user about 10
questions, and then place those 10 anwsers into their 10 corresponding
places in a text file that has already exists.

Thanks in advance for any help you guys/gals might be able to provide
me with.

Posted by Ted Davis on February 8th, 2006


On 7 Feb 2006 14:16:49 -0800, joedaddyC44A@gmail.com wrote:

What operating system is this for?

Where do the questions come from?

How do the relate to the places in the file?

How are the places in the file to be identified?


--
T.E.D. (tdavis@gearbox.maem.umr.edu)

Posted by Timo Salmi on February 8th, 2006


<joedaddyC44A@gmail.com> wrote:
Have you already looked at the FAQ materials on the net?

150924 Jan 11 2006 ftp://garbo.uwasa.fi/pc/link/tscmd.zip
tscmd.zip Useful NT/2000/XP script tricks and tips, T.Salmi

254761 Nov 11 2005 ftp://garbo.uwasa.fi/pc/link/tsbat.zip
tsbat.zip Useful MS-DOS batch files and tricks, T.Salmi

Windows Command Line Interface script programming links
http://www.uwasa.fi/~ts/http/http2.html#cmdscript

MS-DOS+Win../95/98/Me batch programming links
http://www.uwasa.fi/~ts/http/http2.html#batch

All the best, Timo

--
Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5
Department of Accounting and Business Finance ; University of Vaasa
mailto:ts@uwasa.fi <http://www.uwasa.fi/~ts/> ; FIN-65101, Finland
Timo's FAQ materials at http://www.uwasa.fi/~ts/http/tsfaq.html

Posted by Dr John Stockton on February 8th, 2006


JRS: In article <1139350609.378190.65750@g47g2000cwa.googlegroups. com>,
dated Tue, 7 Feb 2006 14:16:49 remote, seen in news:alt.msdos.batch,
joedaddyC44A@gmail.com posted :

You can ask the questions with NQYR and insert the answers with INTO,
both programs via sig line 3. INTO handles 9 substitutions, and 9 is
about 10; but you can use it more than once.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk DOS 3.3, 6.20; Win98. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm>
My DOS <URL:http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm.


Similar Posts