57 lines
1.8 KiB
Batchfile
57 lines
1.8 KiB
Batchfile
|
|
|||
|
@echo off
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
Rem <20>]<5D>w<EFBFBD>ϥΪ̽d<CCBD><64><EFBFBD>Φۭq<DBAD>ؿ<EFBFBD><D8BF><EFBFBD><EFBFBD>|
|
|||
|
Rem
|
|||
|
SET UserTemplatesPath=#USERTEMPLATESPATH#
|
|||
|
SET UserCustomDicPath=#USERCUSTOMDICPATH#
|
|||
|
SET UserCustomDicFile=%UserCustomDicPath%\#CUSTOMDICNAME#
|
|||
|
SET UserAppTemplatesPath=%UserTemplatesPath%\#APPPATHNAME#
|
|||
|
SET UserAppWebTemplatesPath=%UserTemplatesPath%\#APPWEBPATHNAME#
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
Rem <20>]<5D>w<EFBFBD><77><EFBFBD>νd<CEBD><64><EFBFBD>Φۭq<DBAD>ؿ<EFBFBD><D8BF><EFBFBD><EFBFBD>|
|
|||
|
Rem
|
|||
|
SET CommonTemplatesPath=#COMMONTEMPLATESPATH#
|
|||
|
SET CommonCustomDicPath=#COMMONCUSTOMDICPATH#
|
|||
|
SET CommonCustomDicFile=%CommonCustomDicPath%\#CUSTOMDICNAME#
|
|||
|
SET CommonAppTemplatesPath=%CommonTemplatesPath%\#APPPATHNAME#
|
|||
|
SET CommonAppWebTemplatesPath=%CommonTemplatesPath%\#APPWEBPATHNAME#
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
Rem <20>b<EFBFBD>ϥΪ̥D<CCA5>ؿ<EFBFBD><D8BF><EFBFBD><EFBFBD>إ<EFBFBD><D8A5><EFBFBD><EFBFBD>ε{<7B><><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD><77><EFBFBD>ƥؿ<C6A5><D8BF>C
|
|||
|
Rem
|
|||
|
|
|||
|
call TsMkUDir "%UserTemplatesPath%"
|
|||
|
call TsMkUDir "%UserCustomDicPath%"
|
|||
|
call TsMkUDir "%RootDrive%\%MY_DOCUMENTS%"
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20>N Custom.dic <20>ɮƻs<C6BB><73><EFBFBD>ϥΪ̥ؿ<CCA5><D8BF>C
|
|||
|
Rem
|
|||
|
|
|||
|
If Exist "%UserCustomDicFile%" Goto Skip1
|
|||
|
If Not Exist "%CommonCustomDicFile%" Goto Skip1
|
|||
|
Copy "%CommonCustomDicFile%" "%UserCustomDicFile%" >Nul: 2>&1
|
|||
|
:Skip1
|
|||
|
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20>N<EFBFBD>d<EFBFBD><64><EFBFBD>ƻs<C6BB><73><EFBFBD>ϥΪ̽d<CCBD><64><EFBFBD>ϰ<EFBFBD><CFB0>C
|
|||
|
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
|