|
本帖最后由 as8686886 于 2024-4-8 12:45 编辑
MPC-BE、PotPlayer等播放器PE文件关联脚本
思路:先删除注册表Windows Media Playerde的相关文件关联,在使用软件自带的注册参数注册即可。这样视频文件直接运行播放器不会出现需要选择播放器弹窗。
MPC-BE关联参数
/regvid 关联视频/regaud 关联音频
/regpl 关联播放列表
/regall 关联全部格式
PotPlayer关联参数:
/RegisterAll 关联全部格式
/RegisterDef 关联默认格式
- PUSHD %~dp0
- reg delete "HKCR\WMP11.AssocFile.3G2" /f
- reg delete "HKCR\WMP11.AssocFile.3GP" /f
- reg delete "HKCR\WMP11.AssocFile.ASF" /f
- reg delete "HKCR\WMP11.AssocFile.ASX" /f
- reg delete "HKCR\WMP11.AssocFile.AVI" /f
- reg delete "HKCR\WMP11.AssocFile.M3U" /f
- reg delete "HKCR\WMP11.AssocFile.M4A" /f
- reg delete "HKCR\WMP11.AssocFile.MK3D" /f
- reg delete "HKCR\WMP11.AssocFile.MKA" /f
- reg delete "HKCR\WMP11.AssocFile.MKV" /f
- reg delete "HKCR\WMP11.AssocFile.MOV" /f
- reg delete "HKCR\WMP11.AssocFile.MP3" /f
- reg delete "HKCR\WMP11.AssocFile.MP4" /f
- reg delete "HKCR\WMP11.AssocFile.MPEG" /f
- reg delete "HKCR\WMP11.AssocFile.WMV" /f
- PECMD.exe LINK %Desktop%\MPC-BE,%ProgramFiles%\MPC-BE\mpc-be64.exe
- PECMD.exe LINK %Programs%\娱乐影音\MPC-BE,%ProgramFiles%\MPC-BE\mpc-be64.exe
- start " " "%~dp0mpc-be64.exe" /regall
复制代码
还有个更精简的,参考了5楼的代码
- @echo off
- Setlocal EnableDelayedExpansion
- for %%a in ( 3G2 3GP ASF ASX AVI M3U M4A MK3D MKA MKV MOV MP3 MP4 MPEG WMV ) do (
- reg delete "HKCR\WMP11.AssocFile.%%a" /f >nul 2>nul
- )
- PECMD.exe LINK %Desktop%\MPC-BE,%ProgramFiles%\MPC-BE\mpc-be64.exe
- PECMD.exe LINK %Programs%\娱乐影音\MPC-BE,%ProgramFiles%\MPC-BE\mpc-be64.exe
- start " " "%~dp0mpc-be64.exe" /regall
复制代码
|
评分
-
查看全部评分
|