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.

27 lines
599 B

  1. @echo off
  2. setlocal
  3. if /I "%1" == "-u" goto :DoUpdate
  4. cscript %razzletoolpath%\autostart.js %* //nologo
  5. goto :eof
  6. :DoUpdate
  7. set tmpfile=%temp%\bcauto_L%RANDOM%.txt
  8. set excludefiles=%TEMP%\bcauto_X%RANDOM%.txt
  9. echo __blddate__>%excludefiles%
  10. cscript %razzletoolpath%\autostart.js %* //nologo > %tmpfile%
  11. for /F "tokens=1,2" %%i in (%tmpfile%) do set PostBldMach=%%j&goto :Next
  12. :Next
  13. for /F "skip=1 tokens=1,2" %%i in (%tmpfile%) do (
  14. echo xcopy /DEIFY /exclude:%excludefiles% %%j %PostBldMach%
  15. xcopy /DEIFY /exclude:%excludefiles% %%j %PostBldMach%
  16. )
  17. del %tmpfile%
  18. del %excludefiles%