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

  1. @echo off
  2. rem %1 is the node name of the image and
  3. rem %2 is the extension of the image.
  4. if "%2" == "" (
  5. echo S2D: [node name] [extension]
  6. echo EXAMPLE: s2d kernel32 dll
  7. goto end
  8. )
  9. del /q %1.cv
  10. del /q %1.dbg
  11. echo.
  12. echo S2D: confirming files...
  13. matchsym %1.%2 %1.sym
  14. echo.
  15. echo.
  16. echo S2D: creating %1.cv...
  17. symedit X -o%1.cv %1.sym
  18. echo.
  19. echo S2D: saving off original image
  20. copy %1.%2 %1.%2.sav
  21. echo.
  22. echo S2D: adding cv info to %1.%2
  23. cvtodbg %1.%2 %1.cv
  24. echo.
  25. echo S2D: generating dbg file
  26. splitsym %1.%2
  27. echo.
  28. echo S2D: restoring original image
  29. copy %1.%2.sav %1.%2
  30. goto end
  31. echo
  32. %* d:\drop\symedit S %1.sym o %1.cv %1.%2
  33. :end