Disabling...

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
walter4991
Posts: 21
Joined: 11 Dec 2010 10:17

Disabling...

#1 Post by walter4991 » 14 Jan 2011 14:18

How can I disable the mouse and keyboard with a batch file?

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Disabling...

#2 Post by aGerman » 14 Jan 2011 14:36

No way ...
(... thank god :!: )

walter4991
Posts: 21
Joined: 11 Dec 2010 10:17

Re: Disabling...

#3 Post by walter4991 » 14 Jan 2011 14:47

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?

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Disabling...

#4 Post by aGerman » 15 Jan 2011 06:46

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

walter4991
Posts: 21
Joined: 11 Dec 2010 10:17

Re: Disabling...

#5 Post by walter4991 » 15 Jan 2011 15:38

thanks a lot... detailed and precise as ever... :D :D :D

Post Reply