jessebarocio / Wox.Plugin.Runner

A plugin that allows you to create simple command shortcuts in Wox.
41 stars 25 forks source link

Does runner support fixed arguments? #4

Open JRosanowski opened 8 years ago

JRosanowski commented 8 years ago

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.

jiaox99 commented 8 years ago

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

dprice commented 8 years ago

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

eugenesvk commented 8 years ago

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

liango2 commented 6 years ago

哎,都没人修复啊