Page 1 of 1

Disabling...

Posted: 14 Jan 2011 14:18
by walter4991
How can I disable the mouse and keyboard with a batch file?

Re: Disabling...

Posted: 14 Jan 2011 14:36
by aGerman
No way ...
(... thank god :!: )

Re: Disabling...

Posted: 14 Jan 2011 14:47
by walter4991
ahahahaha.... :lol: :lol: :lol:

I had found this:

Code: Select all

rundll32 mouse, disable
rundll32 keyboard, disable

but do not work.

another question: how can I write the input line in a text file?

Re: Disabling...

Posted: 15 Jan 2011 06:46
by aGerman
walter4991 wrote:I had found this:

Code: Select all

rundll32 mouse, disable
rundll32 keyboard, disable

but do not work.

Relics of the last century :wink:


walter4991 wrote:another question: how can I write the input line in a text file?

Most common method is echo-redirecting. Basically:

Code: Select all

set /p "var="
>test.txt echo %var%


Regards
aGerman

Re: Disabling...

Posted: 15 Jan 2011 15:38
by walter4991
thanks a lot... detailed and precise as ever... :D :D :D