Leaked source code of windows server 2003
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.5 KiB

  1. @echo off
  2. Rem
  3. Rem This script updates the location of ODBC log files.
  4. Rem
  5. Rem #########################################################################
  6. Rem
  7. Rem Verify that %RootDrive% has been configured and set it for this script.
  8. Rem
  9. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  10. If "%_CHKROOT%" == "FAIL" Goto Done
  11. Rem #########################################################################
  12. Rem If not currently in Install Mode, change to Install Mode.
  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 If original mode was execute, change back to Execute Mode.
  22. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  23. Set __OrigMode=
  24. Echo.
  25. Echo When configuring SQL data sources, click the Options button on
  26. Echo the User DSN tab and then the Profiling button. Change the Query
  27. Echo Log and Statistics Log files to be saved on the user's root
  28. Echo drive (%RootDrive%).
  29. Echo.
  30. Echo Additionally, an administrator may configure a data source for
  31. Echo all users. First, open a Command window and enter the command
  32. Echo "Change User /Install". Next, configure the data source.
  33. Echo Finally, enter the command "Change User /Execute" in the
  34. Echo command window to return to execute mode.
  35. Echo.
  36. Echo ODBC Multi-user Application Tuning Complete
  37. Pause
  38. :Done