14 lines
499 B
Batchfile
14 lines
499 B
Batchfile
|
@echo off
|
||
|
|
||
|
SETLOCAL
|
||
|
SET SC=HKLM\SOFTWARE\Classes
|
||
|
SET Extn=pmd pmv xls xlt xlsx xlsm xltx xltm
|
||
|
FOR %%j IN (%Extn%) DO (
|
||
|
REG ADD %SC%\.%%j /VE /D "PlanMakerViewer.%%j" /F
|
||
|
REG ADD %SC%\PlanMakerViewer.%%j /VE /D "PlanMaker Viewer" /F
|
||
|
REG ADD %SC%\PlanMakerViewer.%%j\DefaultIcon /VE /D "\"%PROGRAMFILES%\SoftMaker Viewer\PlanMaker/PMViewer.exe\"" /F
|
||
|
REG ADD %SC%\PlanMakerViewer.%%j\shell\open\command /VE /D "\"%PROGRAMFILES%\SoftMaker Viewer\PlanMaker/PMViewer.exe\" \"%%1\"" /F
|
||
|
)
|
||
|
ENDLOCAL
|
||
|
|
||
|
exit
|