|
|
本帖最后由 蜂狂的石头 于 2026-6-11 02:04 编辑
UI_LANShare.bat.txt
(2.08 KB, 下载次数: 5)
@echo off :: PE环境专用:静默注册NB局域网极速分享右键菜单 :: 无需管理员检查(PE默认SYSTEM权限),无暂停,无输出 set "MyPath=%~dp0" set "LanJcfg=%MyPath%wxsUI\UI_LANShare\Main.jcfg" :: ========== NB局域网极速分享 ========== :: 1. 任意物理文件 reg add "HKCR\*\shell\NBLANShare" /ve /t REG_SZ /d "NB局域网极速分享" /f >nul 2>&1 reg add "HKCR\*\shell\NBLANShare" /v "Icon" /t REG_SZ /d "%MyPath%winxshell.exe,0" /f >nul 2>&1 reg add "HKCR\*\shell\NBLANShare\command" /ve /t REG_SZ /d "\"%MyPath%winxshell.exe\" -nowindow -ui -jcfg \"%LanJcfg%\" -file \"%%1\"" /f >nul 2>&1 :: 2. 选中文件夹 reg add "HKCR\Directory\shell\NBLANShare" /ve /t REG_SZ /d "NB局域网极速分享" /f >nul 2>&1 reg add "HKCR\Directory\shell\NBLANShare" /v "Icon" /t REG_SZ /d "%MyPath%winxshell.exe,0" /f >nul 2>&1 reg add "HKCR\Directory\shell\NBLANShare\command" /ve /t REG_SZ /d "\"%MyPath%winxshell.exe\" -nowindow -ui -jcfg \"%LanJcfg%\" -dir \"%%1\"" /f >nul 2>&1 :: 3. 选中磁盘分区 reg add "HKCR\Drive\shell\NBLANShare" /ve /t REG_SZ /d "NB局域网极速分享" /f >nul 2>&1 reg add "HKCR\Drive\shell\NBLANShare" /v "Icon" /t REG_SZ /d "%MyPath%winxshell.exe,0" /f >nul 2>&1 reg add "HKCR\Drive\shell\NBLANShare\command" /ve /t REG_SZ /d "\"%MyPath%winxshell.exe\" -nowindow -ui -jcfg \"%LanJcfg%\" -dir \"%%1\"" /f >nul 2>&1 :: 4. 文件夹内部空白处 reg add "HKCR\Directory\Background\shell\NBLANShare" /ve /t REG_SZ /d "NB局域网极速分享" /f >nul 2>&1 reg add "HKCR\Directory\Background\shell\NBLANShare" /v "Icon" /t REG_SZ /d "%MyPath%winxshell.exe,0" /f >nul 2>&1 reg add "HKCR\Directory\Background\shell\NBLANShare\command" /ve /t REG_SZ /d "\"%MyPath%winxshell.exe\" -nowindow -ui -jcfg \"%LanJcfg%\" -dir \"%%V\"" /f >nul 2>&1 :: 5. 桌面空白处 reg add "HKCR\DesktopBackground\shell\NBLANShare" /ve /t REG_SZ /d "NB局域网极速分享" /f >nul 2>&1 reg add "HKCR\DesktopBackground\shell\NBLANShare" /v "Icon" /t REG_SZ /d "%MyPath%winxshell.exe,0" /f >nul 2>&1 reg add "HKCR\DesktopBackground\shell\NBLANShare\command" /ve /t REG_SZ /d "\"%MyPath%winxshell.exe\" -nowindow -ui -jcfg \"%LanJcfg%\" -dir \"%%V\"" /f >nul 2>&1
|
评分
-
查看全部评分
|