Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does runner support fixed arguments? #4

Open
JRosanowski opened this issue Nov 5, 2015 · 4 comments
Open

Does runner support fixed arguments? #4

JRosanowski opened this issue Nov 5, 2015 · 4 comments

Comments

@JRosanowski
Copy link

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
Copy link

jiaox99 commented Nov 27, 2015

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

@dprice
Copy link

dprice commented Dec 1, 2015

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
Copy link

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

@liango2
Copy link

liango2 commented Dec 24, 2017

哎,都没人修复啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants