Skip to content
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

Win11 ps1适配 #47

Open
TypesTse opened this issue Oct 1, 2024 · 0 comments
Open

Win11 ps1适配 #47

TypesTse opened this issue Oct 1, 2024 · 0 comments

Comments

@TypesTse
Copy link

TypesTse commented Oct 1, 2024

如题,尝试修改为添加到current user后右键能够添加相应菜单。

# 将右键菜单添加到 HKEY_CURRENT_USER 的新结构
New-Item -Force -Path Registry::HKEY_CURRENT_USER\Software\Classes\txtfile\shell\使用kaf-cli转换
New-ItemProperty -Force -Path Registry::HKEY_CURRENT_USER\Software\Classes\txtfile\shell\使用kaf-cli转换 -Name Icon -PropertyType String -Value $ico_path

New-Item -Force -Path Registry::HKEY_CURRENT_USER\Software\Classes\txtfile\shell\使用kaf-cli转换\command
New-ItemProperty -Force -Path Registry::HKEY_CURRENT_USER\Software\Classes\txtfile\shell\使用kaf-cli转换\command -Name "(default)" -PropertyType String -Value $exe_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant