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.

50 lines
1.2 KiB

  1. @echo off
  2. Rem
  3. Rem �o�ӫ��O�ɷ|���s ODBC �O���ɦ��m�C
  4. Rem
  5. Rem #########################################################################
  6. Rem
  7. Rem �ˬd %RootDrive% �O�_�w�]�w�A�ñN���]�w���o�ӫ��O�ɡC
  8. Rem
  9. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  10. If "%_CHKROOT%" == "FAIL" Goto Done
  11. Rem #########################################################################
  12. Rem �p�G�ثe���O�w�˼Ҧ��A�N�ܧ󦨦w�˼Ҧ��C
  13. Set __OrigMode=Install
  14. ChgUsr /query > Nul:
  15. if Not ErrorLevel 101 Goto Begin
  16. Set __OrigMode=Exec
  17. Change User /Install > Nul:
  18. :Begin
  19. ..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\ODBC.Key ODBC.Key
  20. regini ODBC.Key > Nul:
  21. Rem �p�G�쥻�O�����Ҧ��A�N�ܦ^�����Ҧ��C
  22. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  23. Set __OrigMode=
  24. Echo.
  25. Echo �]�w SQL ���ƨӷ��ɡA�����@�U [�ϥΪ� DSN] ���޼���
  26. Echo ���� [�ﶵ] ���s�A�M�����@�U [�]�w�ɳB�z] ���s�C�N�d
  27. Echo �߰O���ɤβέp�O�����ܧ����x�s�b�ϥΪ̮ڥؿ��Ϻо�
  28. Echo (%RootDrive%) ���C
  29. Echo.
  30. Echo ���~�A�t�κ޲z���i�H���Ҧ����ϥΪ̳]�w
  31. Echo �@�Ӹ��ƨӷ��C�����A�}�Ҥ@�ӫ��O�����A
  32. Echo �ÿ��J "Change User /Install"���O�C���ۡA
  33. Echo �]�w���ƨӷ��C�̫��A�b���O���������J
  34. Echo "Change User /Execute" ���O�A�^�������Ҧ��C
  35. Echo.
  36. Echo ODBC �h�ϥΪ����ε{���վ��B�z����
  37. Pause
  38. :Done