Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
keybd input 2 text file in batch
Name: davisms Date: December 8, 2003 at 10:02:26 Pacific OS: DOS CPU/Ram: NA
Comment:
I would like to capture keyboard input from a user and save it to particular line in an existing text file.
ie. Batch may ask: What is your name?
User via keyboard inputs: JohnDoe (return/enter)
that input would then be saved to an existing file (mylog.txt) at particular line:
Name: nathan Date: December 8, 2003 at 15:51:28 Pacific
Reply:
kina depends on whether u have xp or 98. you say you have dos so i'm guessinng you mean the real dos. so anyway you can find what u need at leonardo's site. as for once you get the unput... echo %input% >> myfile.txt
0
Response Number 2
Name: nathan Date: December 8, 2003 at 15:53:41 Pacific
Reply:
p.s. its very important that its ">>" and not just ">" because you will overwrite myfile.txt rather then add to it.
0
Response Number 3
Name: sh0k0nes Date: December 9, 2003 at 05:01:19 Pacific
Reply:
Have the perfect tools for this. Been using them in my bootdisks and unattended for years.
Kev
0
Response Number 4
Name: uli_glueck Date: December 9, 2003 at 23:48:07 Pacific
Summary: I need to create a batch file to which I can pass 2 parameters to create, type and save a text file. Edit and copy con require additional keystrokes outside the batch file. Is there a way to create an...
Summary: I have a batch file which copies the info in ipconfig to a text file then ftp's this text file to some webspace so i can use for SSI. anyway, the point it, the text file has all my DNS numbers and net...
Summary: hi, i try to write a batch file that have to run under dos 6.22 (thus, no for loops ;o)) I try to set the first line from a text file in to a variable but all i see is a example for under nt4 or w2000...