run a cmd or bat file and send it with %c parameter on Win + S(or anything you like) combo keys:
`~S=Run|run-cmd-in-dir.cmd %c`
cause the %c parameter has a space in it
the real path will auto be the %2 in the cmd file, which %1 is "地址:" in my case(as I know, the English version system will be "address: ")
so in the cmd file run `cmd /K cd /D "%2"` will in most cases work fine except in root directory of a driver which Hoekey's %c will be "本地磁盘: (D:)" in my case whick will cause a litter error
but in most cases we will not run cmd in our root directory
so the solution is as follows:
======run-cmd-in-dir.cmd======
@echo off
cmd /K cd /D "%2"
============
======hoekey.ini======add this line
~S=Run|run-cmd-in-dir.cmd %c
============
and last but most important, add your run-cmd-in-dir.cmd's parent folder to your path!
在 2015年3月18日星期三 UTC+8上午11:01:00,谢然写道: