使用快捷方式打开cmd.exe时如何运行命令?


Answers:


15

在快捷方式的目标框中,使用

cmd /K "chcp 1252"

这应该运行您的程序,并在完成后将cmd窗口保持打开状态


6

根据cmd.exe上文档

注册表项:

HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun\REG_SZ 
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun REG_EXPAND_SZ

应该做你想做的。


不错,这适用于每个cmd.exe,而不仅是特定的快捷方式。
Blorgbeard将于
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.