mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-27 00:29:08 +08:00
17 lines
447 B
Batchfile
17 lines
447 B
Batchfile
rem https://connect.microsoft.com/PowerShell/feedback/details/1609288/pin-to-taskbar-no-longer-working-in-windows-10
|
|
|
|
set ps_link=A:\WindowsPowerShell.lnk
|
|
if exist e:\WindowsPowerShell.lnk (
|
|
set ps_link=e:\WindowsPowerShell.lnk
|
|
)
|
|
|
|
set pin_to_10=A:\PinTo10.exe
|
|
if exist e:\PinTo10.exe (
|
|
set pin_to_10=e:\PinTo10.exe
|
|
)
|
|
|
|
|
|
copy "%ps_link%" "%TEMP%\Windows PowerShell.lnk"
|
|
%pin_to_10% /PTFOL01:'%TEMP%' /PTFILE01:'Windows PowerShell.lnk'
|
|
exit /b 0
|