Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4 KiB

  1. Rem ���� Netscape �汾ִ���ʵ�������
  2. if "#NS4VER#" == "4.5x" goto NS45
  3. Rem
  4. Rem Netscape 4.0x
  5. Rem �����Ѿ����ƣ���Ĭ�������ļ����Ƶ��û�
  6. Rem ����Ŀ¼��
  7. Rem
  8. If Exist "%RootDrive%\NS40" Goto Done
  9. If Not Exist "#PROFDIR#" Goto Done
  10. Xcopy "#PROFDIR#" "%RootDrive%\NS40" /E /I /K >Nul: 2>&1
  11. goto Done
  12. :NS45
  13. Rem
  14. Rem Netscape 4.5x
  15. Rem ���û��� Netscape �����ļ�Ŀ¼������ ACL��������ֻ��
  16. Rem ��Щ�û����Է��ʡ�
  17. Rem
  18. ..\ACRegL "%Temp%\NS45_1.Cmd" NSHomeDir "HKCU\Software\Netscape\Netscape Navigator\biff" "CurrentUser" ""
  19. If ErrorLevel 1 Goto Done
  20. Call %Temp%\NS45_1.Cmd
  21. Del %Temp%\NS45_1.Cmd >Nul: 2>&1
  22. If Not Exist "#NSUSERDIR#\%NSHomeDir%" Goto Done
  23. If Exist "#NSUSERDIR#\%NSHomeDir%\com45usr.dat" Goto Done
  24. Rem
  25. Rem ���� Netscape �������� .lnk �ļ�
  26. Rem
  27. If Exist "#NS40INST#\Netscape Composer.lnk" copy "#NS40INST#\Netscape Composer.lnk" "%UserProfile%\%App_Data%\Microsoft\Internet Explorer\Quick Launch" /y
  28. If Exist "#NS40INST#\Netscape Messenger.lnk" copy "#NS40INST#\Netscape Messenger.lnk" "%UserProfile%\%App_Data%\Microsoft\Internet Explorer\Quick Launch" /y
  29. If Exist "#NS40INST#\Netscape Navigator.lnk" copy "#NS40INST#\Netscape Navigator.lnk" "%UserProfile%\%App_Data%\Microsoft\Internet Explorer\Quick Launch" /y
  30. cacls "#NSUSERDIR#\%NSHomeDir%" /e /t /g %username%:F
  31. cacls "#NSUSERDIR#\%NSHomeDir%" /e /t /r "Terminal Server User"
  32. cacls "#NSUSERDIR#\%NSHomeDir%" /e /t /r "Users"
  33. echo done > "#NSUSERDIR#\%NSHomeDir%\com45usr.dat"
  34. :Done