1.

Solve : how to record user input and cmd output?

Answer»

export them to another FILE or other easier method?

i send a BATCH file through lpr command, then i want to log the activities (fail to print..files copied...
try cutting and pasting if all of the information you want is in the command PROMPT window.  right click and choose mark, then SELECT all you want to copy, then copy and paste into a notepad or word fileC:\test>type  ol.bat

Code: [Select]echo  off

set  /p in=Enter input :

echo %in% | lpr 2> log.txt
Output:

C:\test> ol.bat
Enter input :  Hello

C:\test>type log.txt
'lpr' is not recognized as an internal or external command,
operable program or batch file.

C:\test>¡Hola, Carlos! ¿Qué tal?



Discussion

No Comment Found