//获取PETOOLS.ini所在盘符并赋值Cdir
FORX !\PETOOLS\PETOOLS.ini,Myini,1,MSTR Cdir=1,2,%Myini%
//添加注册表关联文件
REGI $HKLM\SOFTWARE\Classes\.pdf\=PDF Document
REGI $HKLM\SOFTWARE\Classes\PDF Document\
REGI $HKLM\SOFTWARE\Classes\PDF Document\DefaultIcon\=%Cdir%\PETOOLS\PhotoTools\SumatraPDF.exe,1
REGI $HKLM\SOFTWARE\Classes\PDF Document\shell\
REGI $HKLM\SOFTWARE\Classes\PDF Document\shell\open\
REGI $HKLM\SOFTWARE\Classes\PDF Document\shell\open\command\="%Cdir%\PETOOLS\PhotoTools\SumatraPDF.exe" "%%1"