WindowsXP-SP1/termsrv/admtools/appcmpt/cht/wrd97usr.cmd
2020-09-30 16:53:49 +02:00

34 lines
930 B
Batchfile

Rem
Rem 在使用者主目錄中建立應用程式指定資料的目錄。
Rem
call TsMkUDir "%RootDrive%\Office97"
call TsMkUDir "%RootDrive%\Office97\Startup"
call TsMkUDir "%RootDrive%\Office97\Templates"
call TsMkUDir "%RootDrive%\%MY_DOCUMENTS%"
Rem
Rem 將下列檔案從所有使用者範本中複製到目前使用者範本所在位置。
Rem
If Not Exist "%UserProfile%\%TEMPLATES%\WINWORD8.DOC" copy "%ALLUSERSPROFILE%\%TEMPLATES%\WINWORD8.DOC" "%UserProfile%\%Templates%\" /Y >Nul: 2>&1
Rem
Rem 將 ARTGALRY.CAG 複製到使用者 windows 目錄。
Rem
If Exist "%RootDrive%\Windows\ArtGalry.Cag" Goto Skip1
Copy "%SystemRoot%\ArtGalry.Cag" "%RootDrive%\Windows\ArtGalry.Cag" >Nul: 2>&1
:Skip1
Rem
Rem 將 Custom.dic 檔案複製到使用者目錄。
Rem
If Exist "%RootDrive%\Office97\Custom.Dic" Goto Skip2
If Not Exist "#INSTDIR#\Office\Custom.Dic" Goto Skip2
Copy "#INSTDIR#\Office\Custom.Dic" "%RootDrive%\Office97\Custom.Dic" >Nul: 2>&1
:Skip2