下列的这个答案 https://stackoverflow.com/questions/2655168/how-do-i-make-a-cmdtree-window-dock-at-startup-in-windbg,我正在尝试建立一个.dmp
在注册表中使用 shell 命令-c "..."
每当我打开转储文件时切换到执行命令。
虽然这适用于任何不使用引号的命令,但我现在想使用需要引号的命令。我怎样才能转义引号,使其不被视为结尾-c "..."
switch?
I tried:
详情如下:
注册表键值:HKEY_CLASSES_ROOT\Windbg.DumpFile.1\shell\WinDbgStartup\command
(默认)值(工作):"C:\path to\windbg.exe" -z "%1" -Q -c ".echo Welcome"
(默认)值(已损坏):"C:\path to\windbg.exe" -z "%1" -Q -c ".echo Wel""come"
-z
用于打开转储文件,-Q
适用于安静的工作空间,位于-c
我可以输入命令,并且我想包含引号。
错误信息:The command line arguments cannot specify more than one kind of debugging to start
WinDbg版本:6.2.9200.16384 X86
你有没有尝试过^"
? ^
转义大多数字符cmd
(调查中)
引用自WinDbg 命令行选项 http://msdn.microsoft.com/en-us/library/windows/hardware/ff561306%28v=vs.85%29.aspx
-c " command "
Specifies the initial debugger command to run at start-up. This command must be
enclosed in quotation marks. Multiple commands can be separated with semicolons.
(If you have a long command list, it may be easier to put them in a script and
then use the -c option with the $<, $><, $><, $$>< (Run Script File) command.)
If you are starting a debugging client, this command must be intended for the
debugging server. Client-specific commands, such as .lsrcpath, are not allowed.
并点击$...
超链接进一步解释了这些选项。
Seems that you actually want to include the " in your echo
. Frankly, I've no idea - but what I'd try would be -c ".echo Wel^"come"
如果这不起作用,我会去$-option
冗长的书。没有人(理智的)声称在建造这些设施时已经考虑了所有可能性......
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)