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
967 B

  1. @echo off
  2. Rem
  3. Rem �o�ӫ��O�ɷ|���s Dr. Watson �w�ˡC
  4. Rem ���|�N Log File Path �� Crash Dump File �s�����m�ܧ�
  5. Rem ���ϥΪ̪��D�ؿ��C
  6. Rem
  7. Rem �`�N�A�z�]�i�H���� drwtsn32 ���ܧ��s�����m�C
  8. Rem
  9. Rem #########################################################################
  10. Rem
  11. Rem �ˬd %RootDrive% �O�_�]�w�A�ó]�w�����O�ɨϥΡC
  12. Rem
  13. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  14. If "%_CHKROOT%" == "FAIL" Goto Done
  15. Rem #########################################################################
  16. Rem �p�G�ثe���O�w�˼Ҧ��A�ܧ����w�˼Ҧ��C
  17. Set __OrigMode=Install
  18. ChgUsr /query > Nul:
  19. if Not ErrorLevel 101 Goto Begin
  20. Set __OrigMode=Exec
  21. Change User /Install > Nul:
  22. :Begin
  23. ..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\DrWatson.Key DrWatson.Key
  24. regini DrWatson.Key > Nul:
  25. Rem �p�G�ثe�������l�Ҧ��A�ܧ��������Ҧ��C
  26. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  27. Set __OrigMode=
  28. Echo Dr. Watson �h�ϥΪ����ε{���վ��B�z����
  29. Pause
  30. :Done