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.

41 lines
985 B

  1. @echo off
  2. rem
  3. rem Batch file to invoke event viewer snapin
  4. rem
  5. setlocal enableextensions
  6. set server=
  7. if not exist %SystemRoot%\system32\mmc.exe goto missingMMC
  8. if not exist %SystemRoot%\system32\eventvwr.msc goto missingMMC
  9. :loop
  10. if "%1"=="" goto invoke
  11. set arg=%1
  12. shift
  13. if /i "%arg%"=="/L" goto loop
  14. if /i "%arg%"=="/H" goto loop
  15. set server=/computer=%arg%
  16. goto loop
  17. :invoke
  18. start %SystemRoot%\system32\mmc.exe /s %server% %SystemRoot%\system32\eventvwr.msc
  19. goto done
  20. :missingMMC
  21. REM ***** LOCALIZE HERE ******
  22. echo The Administration Tool that you have tried to launch is not supported
  23. echo under Microsoft Windows NT v5.0. This Administration tool has been
  24. echo replaced by the Microsoft Management Console (MMC).
  25. echo.
  26. echo The necessary files for MMC that are automatically installed with
  27. echo Microsoft Windows NT v5.0 are missing. Please re-run Microsoft Windows NT Setup.
  28. echo.
  29. pause
  30. :done
  31. endlocal