|
|
本帖最后由 tjone 于 2021-4-27 16:37 编辑
windows封装前图片关联图片查看器或2345看图王。系统安装后,图片自动恢复关联到画图。
要实现自动化,用批处理导入 图片关联的注册表文件 (包括 reg转为 bat、管理员运行)却提示无权限。
关联注册表文件如下,UserChoice 是受限原因。
Windows Registry Editor Version 5.00
; 图片关联看图王
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\2345PicViewer.exe]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\2345PicViewer.exe\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\2345PicViewer.exe\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\2345PicViewer.exe\shell\open\command]
@="\"C:\\Program Files (x86)\\2345Soft\\2345Pic\\2345PicViewer.exe\" \"%1\""
[HKEY_CURRENT_USER\Software\2345.com\2345Pic]
"ActiveDaysNow"="1619197232 1821"
"ActiveDaysPre"="1618943487 1832"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts]
"Applications\\2345PicViewer.exe_.jpg"=dword:00000000
"Applications\\2345PicViewer.exe_.jpeg"=dword:00000000
"Applications\\2345PicViewer.exe_.png"=dword:00000000
"Applications\\2345PicViewer.exe_.bmp"=dword:00000000
"Applications\\2345PicViewer.exe_.gif"=dword:00000000
"Applications\\2345PicViewer.exe_.ico"=dword:00000000
"Applications\\2345PicViewer.exe_.tif"=dword:00000000
"Applications\\2345PicViewer.exe_.webp"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\OpenWithList]
"a"="2345PicViewer.exe"
"MRUList"="a"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\UserChoice]
"ProgId"="2345Pic.bmp"
"Hash"="kX0QU0cW4Eo="
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.gif\OpenWithList]
"a"="2345PicViewer.exe"
"MRUList"="a"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.gif\UserChoice]
"ProgId"="2345Pic.gif"
"Hash"="7dlZkHu1B/8="
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ico\OpenWithList]
"a"="2345PicViewer.exe"
"MRUList"="a"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ico\UserChoice]
"Hash"="sImvWb8pIpI="
"ProgId"="2345Pic.ico"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpeg\OpenWithList]
"a"="2345PicViewer.exe"
"MRUList"="a"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpeg\UserChoice]
"ProgId"="2345Pic.jpeg"
"Hash"="54jQoShMyjo="
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpg\OpenWithList]
"MRUList"="ab"
"b"="mspaint.exe"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpg\UserChoice]
"Hash"="ot1jlz26XbA="
"ProgId"="2345Pic.jpg"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\OpenWithList]
"a"="2345PicViewer.exe"
"MRUList"="a"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice]
"ProgId"="2345Pic.png"
"Hash"="ccnMLoD2cLo="
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.tif\OpenWithList]
"a"="2345PicViewer.exe"
"MRUList"="a"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.tif\UserChoice]
"Hash"="aI+INB0FSc4="
"ProgId"="2345Pic.tif"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.webp\OpenWithList]
"a"="2345PicViewer.exe"
"MRUList"="a"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.webp\UserChoice]
"Hash"="c0DCDtXppe4="
"ProgId"="2345Pic.webp"
不知有啥办法?
另, c盘的目录移动到其他盘,也无权限,啥原因呢:
md c:\1
move c:\1 d:\
以管理员运行cmd也提示无权限
|
|