0
我通過choice
命令使用逐個字符輸入做了一個字母數字密碼檢查器。
我要註冊它來啓動程序並鎖定我的電腦。
但它不能趕上CTRL-C終止。
管道echo N
解決方案沒有幫助我 ,因爲它接收鍵盤輸入。
如何防止用戶輸入CTRL-C?我可以使用批處理文件製作pc密碼鎖定系統嗎?
我通過choice
命令使用逐個字符輸入做了一個字母數字密碼檢查器。
我要註冊它來啓動程序並鎖定我的電腦。
但它不能趕上CTRL-C終止。
管道echo N
解決方案沒有幫助我 ,因爲它接收鍵盤輸入。
如何防止用戶輸入CTRL-C?我可以使用批處理文件製作pc密碼鎖定系統嗎?
發現這個網站:Dos Tips
The solution that I found to block CTRL+C aka Terminate Batch Y/N COMPLETELY.
No Fuss, No kidding, No Breaking Out. XOUT but that too can be disabled.
Briefly:
Code:
C:\PROFILES\ADMIN>REN "%COMSPEC:~0,-8%\CSRSS.EXE" !!!CSRSS.!!!
OOPS Windows File Protection. If WFP is enabled ask almighty Google about that.
Transpose the file names to undo. WARNING: This MAY also break your toaster. 8)
PRO: Disallow all programs from injecting code via CSRSS hooking.
CON: PROPERTIES from the System Menu of CMD Windows are disabled as well.
CON: Enemy Territory will certainly whine until dialog box is dismissed once.
ELSE This is bulletproof. I'm being extremely terse!
我會建議你閱讀其他頁面和一些在其上的信息的運行腳本之前,因爲它可能會造成損害。如果你有一臺虛擬機來測試它,那將是最好的:)
謝謝,我會試試! – user160368