Search found 3 matches

by tcurrier
05 May 2011 08:29
Forum: DOS Batch Forum
Topic: write user input to output file
Replies: 4
Views: 4395

Re: write user input to output file

Just had to rearrange things a little bit ;-)

Code: Select all

echo %INPUT%   >  c:\output_file.txt
echo %INPUT2%  >> c:\output_file.txt


This works ... thanks for your help !
by tcurrier
05 May 2011 08:13
Forum: DOS Batch Forum
Topic: write user input to output file
Replies: 4
Views: 4395

Re: write user input to output file

Thanks, but I got the following :

'C:\USERINPUT.TXT' is not recognized as an internal or external command,
operable program or batch file.
by tcurrier
05 May 2011 07:08
Forum: DOS Batch Forum
Topic: write user input to output file
Replies: 4
Views: 4395

write user input to output file

Hi, I want to prompt a user for input, then write the results to a file (say, C:\USERINPUT.TXT, for example) C:\USERINPUT.TXT: Joe Smith 000-555-1212 Any suggestions on how to do this? Thanks for any help. Current code: :input set INPUT= set /P INPUT=Type Enter your name please : %=% if "%INPUT...