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

  1. @ echo off
  2. @ REM ========================================================================
  3. @ REM Copyright (c) 1997 Microsoft Corporation
  4. @ REM
  5. @ REM Module Name:
  6. @ REM
  7. @ REM place.bat
  8. @ REM
  9. @ REM Abstract:
  10. @ REM
  11. @ REM This batch file copies a given file into a temporary cabdir
  12. @ REM subdirectory. It is designed to be called from the individual build
  13. @ REM batch files.
  14. @ REM
  15. @ REM Author:
  16. @ REM
  17. @ REM Doug Barlow (dbarlow) 7/7/1997
  18. @ REM
  19. @ REM ========================================================================
  20. setlocal
  21. if not "%3" == "" goto three_params
  22. if not "%2" == "" goto two_params
  23. echo Usage: %0 <srcDir> <srcFile> [<dstFile>]
  24. goto end
  25. :three_params
  26. set newname=%3
  27. goto main
  28. :two_params
  29. set newname=%2
  30. :main
  31. copy %1\%2 cabdir\%newname% > nul
  32. if not exist cabdir\%newname% echo Failed to copy %1\%2
  33. :end
  34. endlocal