42 lines
1.4 KiB
Batchfile
42 lines
1.4 KiB
Batchfile
Rem 根據 Netscape 版本執行適當指令。
|
||
if "#NS4VER#" == "4.5x" goto NS45
|
||
|
||
Rem
|
||
Rem Netscape 4.0x
|
||
Rem 如果預設的設定檔尚未複製到使用者主目錄,
|
||
Rem 就將預設的設定檔複製到使用者主目錄。
|
||
Rem
|
||
|
||
If Exist "%RootDrive%\NS40" Goto Done
|
||
If Not Exist "#PROFDIR#" Goto Done
|
||
Xcopy "#PROFDIR#" "%RootDrive%\NS40" /E /I /K >Nul: 2>&1
|
||
goto Done
|
||
|
||
:NS45
|
||
Rem
|
||
Rem Netscape 4.5x
|
||
Rem 在使用者的 Netscape 設定檔目錄中設定 ACL,
|
||
Rem 這樣只有使用者才能存取它。
|
||
Rem
|
||
|
||
..\ACRegL "%Temp%\NS45_1.Cmd" NSHomeDir "HKCU\Software\Netscape\Netscape Navigator\biff" "CurrentUser" ""
|
||
If ErrorLevel 1 Goto Done
|
||
Call %Temp%\NS45_1.Cmd
|
||
Del %Temp%\NS45_1.Cmd >Nul: 2>&1
|
||
|
||
If Not Exist "#NSUSERDIR#\%NSHomeDir%" Goto Done
|
||
If Exist "#NSUSERDIR#\%NSHomeDir%\com45usr.dat" Goto Done
|
||
|
||
Rem
|
||
Rem 複製 Netscape 快速啟動 .lnk 檔案
|
||
Rem
|
||
If Exist "#NS40INST#\Netscape Composer.lnk" copy "#NS40INST#\Netscape Composer.lnk" "%UserProfile%\%App_Data%\Microsoft\Internet Explorer\Quick Launch" /y
|
||
If Exist "#NS40INST#\Netscape Messenger.lnk" copy "#NS40INST#\Netscape Messenger.lnk" "%UserProfile%\%App_Data%\Microsoft\Internet Explorer\Quick Launch" /y
|
||
If Exist "#NS40INST#\Netscape Navigator.lnk" copy "#NS40INST#\Netscape Navigator.lnk" "%UserProfile%\%App_Data%\Microsoft\Internet Explorer\Quick Launch" /y
|
||
|
||
cacls "#NSUSERDIR#\%NSHomeDir%" /e /t /g %username%:F
|
||
cacls "#NSUSERDIR#\%NSHomeDir%" /e /t /r "Terminal Server User"
|
||
cacls "#NSUSERDIR#\%NSHomeDir%" /e /t /r "Users"
|
||
echo done > "#NSUSERDIR#\%NSHomeDir%\com45usr.dat"
|
||
:Done
|