@ECHO off 
reg add "HKLM\SOFTWARE\Classes\.treeDB" /f /ve /t REG_SZ /d "OptionsFile"
reg add "HKLM\SOFTWARE\Classes\OptionsFile" /f /ve /t REG_SZ /d "Program Options File"
reg add "HKLM\SOFTWARE\Classes\OptionsFile\DefaultIcon" /f /ve /t REG_SZ /d "%cd%\TreeDBNotes.exe,0"
reg add "HKLM\SOFTWARE\Classes\OptionsFile\shell" /f /ve /t REG_SZ /d "open"
reg add "HKLM\SOFTWARE\Classes\OptionsFile\shell\edit" /f /ve /t REG_SZ /d "Edit Options File"
reg add "HKLM\SOFTWARE\Classes\OptionsFile\shell\edit\command" /f /ve /t REG_SZ /d "%cd%\TreeDBNotes.exe \"%%1\""
reg add "HKLM\SOFTWARE\Classes\OptionsFile\shell\open\command" /f /ve /t REG_SZ /d "%cd%\TreeDBNotes.exe \"%%1\""
reg add "HKCU\Software\SoftArtStudio\TreeDBNotes Pro 4" /f /ve /t REG_SZ /d "%cd%"
md "%APPDATA%\TreeDBNotes Pro 4"
xcopy "TreeDBNotes Pro 4\*.*" "%APPDATA%\TreeDBNotes Pro 4" /e /q /y
cls 
color 0A 
ECHO             欢迎使用!
ECHO        ☆ 绿化制作：忘言 ☆
ECHO     www.cr173.com 西西软件园
ECHO ===============================
ECHO 配置完毕!按任意键启动程序。。。。。。 
pause>nul
start TreeDBNotes.exe
