58 lines
1.9 KiB
Batchfile
58 lines
1.9 KiB
Batchfile
|
|
|||
|
@echo off
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
Rem <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ø<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>θ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
|||
|
Rem
|
|||
|
SET UserTemplatesPath=#USERTEMPLATESPATH#
|
|||
|
SET UserCustomDicPath=#USERCUSTOMDICPATH#
|
|||
|
SET UserCustomDicFile=%UserCustomDicPath%\#CUSTOMDICNAME#
|
|||
|
SET UserAppTemplatesPath=%UserTemplatesPath%\#APPPATHNAME#
|
|||
|
SET UserAppWebTemplatesPath=%UserTemplatesPath%\#APPWEBPATHNAME#
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
Rem <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ø<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>θ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
|||
|
Rem
|
|||
|
SET CommonTemplatesPath=#COMMONTEMPLATESPATH#
|
|||
|
SET CommonCustomDicPath=#COMMONCUSTOMDICPATH#
|
|||
|
SET CommonCustomDicFile=%CommonCustomDicPath%\#CUSTOMDICNAME#
|
|||
|
SET CommonAppTemplatesPath=%CommonTemplatesPath%\#APPPATHNAME#
|
|||
|
SET CommonAppWebTemplatesPath=%CommonTemplatesPath%\#APPWEBPATHNAME#
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
Rem <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȩ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><CDB8><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|||
|
Rem <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><CDB8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.
|
|||
|
Rem
|
|||
|
|
|||
|
call TsMkUDir "%UserTemplatesPath%"
|
|||
|
call TsMkUDir "%UserCustomDicPath%"
|
|||
|
call TsMkUDir "%RootDrive%\%MY_DOCUMENTS%"
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem
|
|||
|
Rem Custom.dic <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><CDB8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
|||
|
Rem
|
|||
|
|
|||
|
If Exist "%UserCustomDicFile%" Goto Skip1
|
|||
|
If Not Exist "%CommonCustomDicFile%" Goto Skip1
|
|||
|
Copy "%CommonCustomDicFile%" "%UserCustomDicFile%" >Nul: 2>&1
|
|||
|
:Skip1
|
|||
|
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20><><EFBFBD>ø<EFBFBD><C3B8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ø<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
|||
|
Rem
|
|||
|
|
|||
|
If Exist "%UserAppTemplatesPath%" Goto Skip2
|
|||
|
If Not Exist "%CommonAppTemplatesPath%" Goto Skip2
|
|||
|
xcopy "%CommonAppTemplatesPath%" "%UserAppTemplatesPath%" /E /I >Nul: 2>&1
|
|||
|
:Skip2
|
|||
|
|
|||
|
if Exist "%UserAppWebTemplatesPath%" Goto Skip3
|
|||
|
if Not Exist "%CommonAppWebTemplatesPath%" Goto Skip3
|
|||
|
xcopy "%CommonAppWebTemplatesPath%" "%UserAppWebTemplatesPath%" /E /I >Nul: 2>&1
|
|||
|
:Skip3
|