China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-09 17:53
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How can I disable the keyboard View 3,463 Replies 20
Floor 16 Posted 2008-09-08 23:17 ·  中国 广东 东莞 电信
中级用户
★★
Credits 461
Posts 243
Joined 2007-10-14 16:56
18-year member
UID 99730
Gender Male
Status Offline
Do keyboard and mouse disabling takes effect only after restart?

If disabled and after restart the keyboard and mouse are disabled, how else can the keyboard and mouse be enabled?

[ Last edited by qwertl on 2008-9-8 at 11:18 PM ]
Floor 17 Posted 2008-09-08 23:41 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
It is suggested to hang out in forums discussing Windows for a few months
Floor 18 Posted 2008-09-09 12:02 ·  中国 江西 赣州 电信
初级用户
Credits 80
Posts 45
Joined 2006-09-22 22:28
19-year member
UID 63398
Gender Male
From jiangxi
Status Offline
Excuse me... If I want to disable the USB, how to do it?
Floor 19 Posted 2008-09-09 13:35 ·  中国 四川 成都 教育网
初级用户
Credits 65
Posts 27
Joined 2008-08-28 21:14
17-year member
UID 124424
Gender Male
Status Offline
After I executed in the virtual machine and restarted, the mouse and keyboard were all unusable. Then the solution was to restart the computer, select the last known good configuration, OK.

HAT sir, that command really disables the mouse and keyboard, both at the same time, whether you execute one sentence or two sentences.
Floor 20 Posted 2008-09-09 13:38 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Is this okay?
@echo off
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR /v Start /t reg_dword /d 4 /f
shutdown -r -t 0 -f
Floor 21 Posted 2008-09-09 19:46 ·  中国 四川 成都 电信
初级用户
Credits 65
Posts 27
Joined 2008-08-28 21:14
17-year member
UID 124424
Gender Male
Status Offline
The test on the 20th floor didn't work. By the way, is this for XP or Windows Server? I tested it in XP and it didn't hold up.
Forum Jump: