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.

45 lines
1.8 KiB

  1. REM
  2. REM Batch file to stick a bunch of lint in the metabase.
  3. REM
  4. REM Use all 4 services (w3svc, msftpsvc, smtpsvc, nntpsvc)
  5. mdutil create W3SVC/811/ROOT
  6. mdutil set W3SVC/811/ROOT/VrPath "c:\LintInW3SVC"
  7. mdutil create MSFTPSVC/811/ROOT
  8. mdutil set MSFTPSVC/811/ROOT/VrPath "c:\LintInMSFTPSVC"
  9. mdutil create SMTPSVC/811/ROOT
  10. mdutil set SMTPSVC/811/ROOT/VrPath "c:\LintInSMTPSVC"
  11. mdutil create NNTPSVC/811/ROOT
  12. mdutil set NNTPSVC/811/ROOT/VrPath "c:\LintInNNTPSVC"
  13. REM Use multiple virtual servers
  14. mdutil create W3SVC/812/ROOT
  15. mdutil set W3SVC/812/ROOT/VrPath "c:\LintMultipleVirtualServers"
  16. mdutil create W3SVC/813/ROOT
  17. mdutil set W3SVC/813/ROOT/VrPath "c:\LintMultipleVirtualServers"
  18. REM Use weird (partially numeric) key names -- shouldn't be treated as virtual servers
  19. mdutil create W3SVC/Abc456/ROOT
  20. mdutil set W3SVC/Abc456/ROOT/VrPath "c:\LintPartiallyNumericNamesShouldNotShow"
  21. mdutil create W3SVC/789Abc/ROOT
  22. mdutil set W3SVC/789Abc/ROOT/VrPath "c:\LintPartiallyNumericNamesShouldNotShow"
  23. REM Use bad file paths
  24. mdutil create W3SVC/814/ROOT
  25. mdutil set W3SVC/814/ROOT/VrPath "c:\LintBadFilePaths\thisdoesnotexist\nordoesthis\northis"
  26. REM Create bogus file entries under a good vdir (assumes c:\temp exists)
  27. mdutil create W3SVC/815/ROOT
  28. mdutil set W3SVC/815/ROOT/VrPath "c:\temp"
  29. mdutil create W3SVC/815/ROOT/nonexistentfile.htm
  30. REM Create bogus dir (non-virtual dir) entries under a good vdir (assumes c:\temp exists)
  31. mdutil create W3SVC/815/ROOT/nonexistentdir
  32. mdutil create W3SVC/815/ROOT/nonexistentdir/thisshouldnotshow.htm
  33. REM Create nested errors
  34. mdutil create W3SVC/816/ROOT
  35. mdutil set W3SVC/816/ROOT/VrPath "c:\LintTheTopNestedError"
  36. mdutil create W3SVC/816/ROOT/ShowNoError
  37. mdutil create W3SVC/816/ROOT/ShowNoError/DoShowError
  38. mdutil set W3SVC/816/ROOT/ShowNoError/DoShowError/VrPath "c:\LintThisShouldShowUpToo"