Skip to content

Commit

Permalink
fix: errors in fileassoc.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyueta committed Oct 6, 2023
1 parent a589ba4 commit 4be5631
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/playbook/Executables/FILEASSOC.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ for /f "usebackq tokens=2 delims=\" %%a in (`reg query HKU ^| findstr /r /x /c:"
powershell -NoP -EP Unrestricted -File assoc.ps1 "Placeholder" "%%a" %associations%
)
)
exit /b

:7ZIPUSER
(
Expand Down Expand Up @@ -284,6 +285,7 @@ for /f "usebackq tokens=2 delims=\" %%a in (`reg query HKU ^| findstr /r /x /c:"
reg add "HKU\%~1\Software\Classes\7-Zip.zip\shell\open" /ve /t REG_SZ /d "" /f
reg add "HKU\%~1\Software\Classes\7-Zip.zip\shell\open\command" /ve /t REG_SZ /d "\"%ProgramFiles%\7-Zip\7zFM.exe\" \"%%1\"" /f
) > nul

exit /b

:7ZIPSYSTEM
Expand Down Expand Up @@ -517,4 +519,5 @@ exit /b
reg add "HKLM\Software\Classes\7-Zip.zip\shell\open" /ve /t REG_SZ /d "" /f
reg add "HKLM\Software\Classes\7-Zip.zip\shell\open\command" /ve /t REG_SZ /d "\"%ProgramFiles%\7-Zip\7zFM.exe\" \"%%1\"" /f
) > nul

exit /b

0 comments on commit 4be5631

Please sign in to comment.