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-02 01:27
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Can batch processing lock the keyboard and mouse? View 1,726 Replies 4
Original Poster Posted 2006-09-12 12:07 ·  中国 河南 郑州 联通
中级用户
★★
Credits 439
Posts 170
Joined 2006-01-09 20:29
20-year member
UID 48707
Status Offline
As the title says
Floor 2 Posted 2006-09-12 12:19 ·  中国 广东 佛山 广东睿江科技有限公司
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
It is possible to achieve it by modifying the registry.
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 3 Posted 2006-09-12 22:42 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Just uninstall the driver with a bat, haha~

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 4 Posted 2006-09-13 02:13 ·  中国 江苏 苏州 电信
中级用户
★★
过度热情
Credits 321
Posts 139
Joined 2006-03-21 17:19
20-year member
UID 52521
Gender Male
Status Offline
Interested....I don't know how to do it yet....
Such as locking the functions of PS2/USB mouse, keyboard, or some keys of the keyboard (such as WIN, DEL, etc.), locking the CDROM. It seems that in VC, these hardware devices are calling some hardware driver handles, etc., and I haven't implemented it specifically.
Can modifying the registry achieve it? I don't know.. It seems not.
For example, you lock some keys of the keyboard (such as WIN, DEL, etc.)...
If it really works, please post an example...Top..........
知识在于不断积累
Floor 5 Posted 2006-09-13 10:11 ·  中国 河南 郑州 电信
中级用户
★★
Credits 439
Posts 170
Joined 2006-01-09 20:29
20-year member
UID 48707
Status Offline
I want to generate a VBS for locking the keyboard and mouse through BAT, but I don't know how to do it alone with BAT
Forum Jump: