Wox.Plugin.Runner icon indicating copy to clipboard operation
Wox.Plugin.Runner copied to clipboard

Does runner support fixed arguments?

Open JRosanowski opened this issue 9 years ago • 4 comments

I'd like to set up a shortcut like this

Shortcut - sdev Path - C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe Argument - E:\Dev\Something\Something.sln

I can't seem to get it to work and the only example you give is of arguments that you type into wox.

-- Actually I can get this to work just using the sln in the Path but it's probably still worth explaining whether fixed arguments are possible.

Thanks.

JRosanowski avatar Nov 05 '15 23:11 JRosanowski

看了一下源码,如上配置后,只要在运行时随便多输入个字符就好了, e.g. r sdev x

jiaox99 avatar Nov 27 '15 04:11 jiaox99

I am also unable to create a fixed path runner. Here's what I have: Shortcut - sc Path - powershell.exe Argument - "& 'C:\Scripts\Start-Script.ps1'"

A PowerShell prompt is started but nothing is run. I've also tried: Argument - & 'C:\Scripts\Start-Script.ps1'

You mentioned that you're using string formatting, so I'm guessing that you're doing something like this: string.Format("{0} {1}", "powershell.exe", "\"& 'C:\\scripts\\Start-Script.ps1'\"")

so I even tried this: Argument - \"& 'C:\\Users\\derek.price\\Documents\\WindowsPowerShell\\Start-Morning.ps1'\"

I'm able to create shortcuts to programs that don't have arguments, like Add/Remove Programs (appwiz.cpl), but anything with arguments just doesn't seem to work. What am I missing?

Thanks, Derek

dprice avatar Dec 01 '15 20:12 dprice

I agree, a couple of examples would've been nice. Also can't get anything to work with parameters.

eugenesvk avatar Apr 17 '16 03:04 eugenesvk

哎,都没人修复啊

liango2 avatar Dec 24 '17 08:12 liango2