-
Notifications
You must be signed in to change notification settings - Fork 4
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
'clip.exe' is not recognized as an internal or external command #8
Comments
That's all very mysterious; What does Are there malformed entries in What does nowadays mean? Did you upgrade to a new PS Core version, and what is that version? |
I cannot reproduce on my However, I did this test and it shows unexpected behaviour. I copied clip.exe from system32 to my current location, i.e. Regardless of the root cause of a problem, @mklement0 can solution be to use full path instead of clip.exe here? |
Thanks, guys. Even though the problem turned out to be external to this module, I've decided to follow @iricigor's suggestions and use full paths for the execution of the external shells and clipboard programs (where known) in the just-published https://www.powershellgallery.com/packages/ClipboardText/0.1.8 Using full paths for executables in known locations is preferable from a security and predictability standpoint. However, @iricigor, I'm mystified by your |
Problem
For whatever reason I nowadays get below error message when running
Set-ClipboardText
from Powershell Core:Running clip.exe works fine but not when called via
cmd.exe
:Solution
Works fine when using Get-Command to resolve full path
The text was updated successfully, but these errors were encountered: