Created
January 5, 2024 06:11
-
-
Save hasegawayosuke/dc9805c0ff54dfb90d60ea2be9f7e560 to your computer and use it in GitHub Desktop.
wingetでインストールされたバイナリへのハードリンクを %HOMEDRIVE%%HOMEPATH%\bin\ に作成する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
for /R %LOCALAPPDATA%\Microsoft\WinGet\Packages %%x in (*.exe) do ( | |
if exist %HOMEDRIVE%%HOMEPATH%\bin\%%~nxx del %HOMEDRIVE%%HOMEPATH%\bin\%%~nxx | |
mklink /H %HOMEDRIVE%%HOMEPATH%\bin\%%~nxx %%x | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment