Page 1 of 1

How to capture keyboard value and write in a file???

Posted: 14 Sep 2009 05:38
by suhasmahajan85
Hello All

Requirement:

I want to create a batch file wich will capture keboard values and write somwhere in text.

E.g- If I run a batch file and what ever keys i will press on my keyboard should get write in a file.


Thanks in advance[color=green][/color]

Posted: 15 Jan 2010 21:18
by Flyingmetalyak
Well, you could do this...

Code: Select all

@ECHO OFF
set /p whatever=
ECHO."%whatever%">> "whatever.txt"