我怎样才能燮preSS在Win7中的cmd.exe“终止批处理作业” [英] How can I suppress the “terminate batch job” in Win7 cmd.exe
问题描述
作为<一个讨论href=\"http://stackoverflow.com/questions/1234571/how-can-i-sup$p$pss-the-terminate-batch-job-in-cmd-exe\"标题=我怎么能燮preSS的终止,在cmd.exe的批处理作业>另一个问题,有可能修补CMD.EXE共进晚餐preSS的终止批处理作业(Y / N)?信息。 说明修补补丁有用适用于Windows XP。
As discussed in another question, it's possible to patch cmd.exe to suppress the "Terminate batch job (Y/N)?" message. Patching instructions are available for Windows XP.
不幸的是,这些修补方向是过时的Windows 7,我不知道足够装配更新它们。 (我不知道如何使用十六进制编辑器,并能够遵循WinXP的方向。)
Unfortunately, these patching directions are out of date for Windows 7, and I don't know enough assembly to update them. (I do know how to use a hex editor, and was able to follow the directions for WinXP.)
,我怎么能在Windows 7更新的cmd.exe来解决这个讨厌的错误吗?
Based on those WinXP directions, how can I update cmd.exe in Windows 7 to fix this obnoxious bug?
推荐答案
该网页的作者给我更换的偏移量:
The author of the webpage gave me replacement offsets:
.text:000000004AD1CF53 48 83 3D 8D 02 01 00 00 cmp cs:CurrentBatchFile, 0
.text:000000004AD1CF5B 74 3D jz short loc_4AD1CF9A
.....
.text:000000004AD1CF5D BA 7B 23 00 00 mov edx, 237Bh
.text:000000004AD1CF62 33 C9 xor ecx, ecx
.text:000000004AD1CF64 44 8D 42 AD lea r8d, [rdx-53h]
.text:000000004AD1CF68 E8 E3 7B 00 00 call PromptUser
.text:000000004AD1CF6D 83 F8 01 cmp eax, 1
.text:000000004AD1CF70 74 0B jz short loc_4AD1CF7D
.text:000000004AD1CF72 E8 B9 51 FE FF call ResetCtrlC
^F.text:000000004AD1CF77 90 nop
.text:000000004AD1CF78 E9 46 54 FE FF jmp loc_4AD023C3
.....
.text:000000004AD1CF7D loc_4AD1CF7D: ; CODE XREF:
CheckCtrlC+1ABC0^Xj
.text:000000004AD1CF7D 48 8B 1D 64 02 01 00 mov rbx, cs:CurrentBatchFile
.text:000000004AD1CF84 EB 0F jmp short loc_4AD1CF95
在64位的win7 CMD.EXE即开始从0x20字节偏移0x1c35d
In the 64bit win7 cmd.exe that is 0x20 bytes starting at offset 0x1c35d
这篇关于我怎样才能燮preSS在Win7中的cmd.exe“终止批处理作业”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!