通过launchy运行bat文件的Windows路径问题

通过launchy运行bat文件的Windows路径问题

我正在尝试从 launchy 2.5.0 运行批处理文件(网站)在 Win 10 1809 中

cd
path
where ssh.exe
ssh.exe 
pause

当我尝试从 launchy 运行它时

E:\scripts\machine-config\launchy-shortcuts-windows\power>cd
E:\scripts\machine-config\launchy-shortcuts-windows\power

E:\scripts\machine-config\launchy-shortcuts-windows\power>path
PATH=C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter;;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Crucial\Crucial Storage Executive;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\andy\AppData\Local\Microsoft\WindowsApps

E:\scripts\machine-config\launchy-shortcuts-windows\power>where ssh.exe
INFO: Could not find files for the given pattern(s).

E:\scripts\machine-config\launchy-shortcuts-windows\power>ssh.exe
'ssh.exe' is not recognized as an internal or external command,
operable program or batch file.

E:\scripts\machine-config\launchy-shortcuts-windows\power>pause
Press any key to continue . . .

从 cmd 运行它会

E:\scripts\machine-config\launchy-shortcuts-windows\power>cd
E:\scripts\machine-config\launchy-shortcuts-windows\power

E:\scripts\machine-config\launchy-shortcuts-windows\power>path
PATH=C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter;;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Crucial\Crucial Storage Executive;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\andy\AppData\Local\Microsoft\WindowsApps;

E:\scripts\machine-config\launchy-shortcuts-windows\power>where ssh.exe
C:\Windows\System32\OpenSSH\ssh.exe

E:\scripts\machine-config\launchy-shortcuts-windows\power>ssh.exe
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
           [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
           [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
           [-i identity_file] [-J [user@]host[:port]] [-L address]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
           [-w local_tun[:remote_tun]] destination [command]

E:\scripts\machine-config\launchy-shortcuts-windows\power>pause
Press any key to continue . . .

由于路径看起来相同,我猜测这是一些权限问题?

无论我以用户身份从 shell:startup 运行 launchy.exe,还是右键单击并以管理员身份运行,都会发生相同的行为

相关内容