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

[PENDING] Passing arguments #1

Open
sergeevabc opened this issue Dec 14, 2018 · 3 comments
Open

[PENDING] Passing arguments #1

sergeevabc opened this issue Dec 14, 2018 · 3 comments

Comments

@sergeevabc
Copy link

Dear Luis, I am confused as the following sequence does not work.

$ RunAsService install "WatchExec" "C:\Test\watchexec.exe --postpone -w C:\FolderToWatch C:\Test\FileToLaunchOnChange.bat"

You must specify the path to a console application executable. Nothing in the parameters you specified pointed to an executable.
@sergeevabc sergeevabc changed the title Passing arguments [PENDING] Passing arguments Dec 19, 2018
@Jacosci
Copy link

Jacosci commented Jan 23, 2019

Dear Luis, I am confused as the following sequence does not work.

$ RunAsService install "WatchExec" "C:\Test\watchexec.exe --postpone -w C:\FolderToWatch C:\Test\FileToLaunchOnChange.bat"

You must specify the path to a console application executable. Nothing in the parameters you specified pointed to an executable.

That's Windows' fault. Try to put an extra quotation marks around the path of your executable+arguments. I never had any problem passing arguments so far.

@eagle275
Copy link

@Jacosci I have doubts your solution helps ... When I tried to cure my problem (issue 3) by adding another "level" of quotes around the executable path I get an error saying in principle "I cant find an exe file-name in the string you give me" - when I remove the extra quotes the path is accepted (though it doesnt work if the path contains space(s) )

@luisperezphd
Copy link
Owner

luisperezphd commented Oct 12, 2020 via email

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

4 participants