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

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
suhasmahajan85
Posts: 5
Joined: 10 Sep 2009 22:53

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

#1 Post by suhasmahajan85 » 14 Sep 2009 05:38

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]

Flyingmetalyak
Posts: 5
Joined: 15 Jan 2010 20:46
Contact:

#2 Post by Flyingmetalyak » 15 Jan 2010 21:18

Well, you could do this...

Code: Select all

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

Post Reply