CommandTrayHost
CommandTrayHost copied to clipboard
"cmd" 调用程序大小写问题。
两个配置文件,上面那个可以,下面那个就会报错。 发现 exe 强制是小写,不然就报错,哪怕程序本来是大写的也不行。 Windows 应该是不区分大小写的,文档里也没强调。
蛋疼的为这点问题折腾到现在。 希望能去掉大小写限制。
还提一个建议 CommandTrayHost 运行后,会默认启动一个隐藏的 CMD。 就提供一个托盘点击打开的功能 ,感觉没啥意义。希望能去掉,起码提供不启动选项。
{
"configs": [
{
"name": "cmd例子2",
"path": "C:\\Windows\\System32",
"cmd": "cmd.exe",
"working_directory": "",
"addition_env_path": "",
"use_builtin_console": false,
"is_gui": false,
"enabled": false
},
],
"global": true
}
{
"configs": [
{
"name": "cmd例子2",
"path": "C:\\Windows\\System32",
"cmd": "cmd.EXE",
"working_directory": "",
"addition_env_path": "",
"use_builtin_console": false,
"is_gui": false,
"enabled": false
},
],
"global": true
}