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.

53 lines
1.4 KiB

  1. @echo off
  2. setlocal
  3. if "%BASEDIR%%_NTDRIVE%==" goto envvarerr
  4. if "%BASEDIR%==" set BASEDIR=%_NTDRIVE%\nt
  5. if "%1==" set source_dir=\\DAVIDHOV1\NTSRC
  6. if not "%1==" set source_dir=%1
  7. if "%2==" set dest_dir=%BASEDIR%
  8. if not "%2==" set dest_dir=%2
  9. if "%3==" set TC_flags=/irtA
  10. rem Jon Newman, 23 November 1991
  11. rem From Rustan/Chuck's qqchk.cmd
  12. rem usage: copybin [source_dir [dest_dir [TC_flags]]]
  13. rem %0 %1 %2 %3
  14. set TC_flags=
  15. :top_loop
  16. if not "%3==" set TC_flags=%TC_flags% %3 && shift && goto :top_loop
  17. @echo Copying from directory : %source_dir%
  18. @echo Copying to directory : %dest_dir%
  19. @echo TC.EXE Flags : %TC_flags%
  20. @echo Wanna carry on? (Control-C if no)
  21. pause
  22. tc %TC_flags% %source_dir%\public %dest_dir%\public
  23. if not errorlevel 0 goto copyerr
  24. tc %TC_flags% %source_dir%\private\net\winnet %dest_dir%\private\net\winnet
  25. if not errorlevel 0 goto copyerr
  26. tc %TC_flags% %source_dir%\private\net\api %dest_dir%\private\net\api
  27. if not errorlevel 0 goto copyerr
  28. tc %TC_flags% %source_dir%\private\net\inc %dest_dir%\private\net\inc
  29. if not errorlevel 0 goto copyerr
  30. tc %TC_flags% %source_dir%\private\eventlog %dest_dir%\private\eventlog
  31. if not errorlevel 0 goto copyerr
  32. goto :exit
  33. :copyerr
  34. @echo Treecopy failed
  35. goto :exit
  36. :envvarerr
  37. @echo Either _NTDRIVE or BASEDIR must be defined
  38. goto :exit
  39. :syntax
  40. @echo usage: copybin [source_dir [dest_dir [TC_flags]]]
  41. :exit