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.
 
 
 
 
 
 

28 lines
599 B

@echo off
setlocal
if /I "%1" == "-u" goto :DoUpdate
cscript %razzletoolpath%\autostart.js %* //nologo
goto :eof
:DoUpdate
set tmpfile=%temp%\bcauto_L%RANDOM%.txt
set excludefiles=%TEMP%\bcauto_X%RANDOM%.txt
echo __blddate__>%excludefiles%
cscript %razzletoolpath%\autostart.js %* //nologo > %tmpfile%
for /F "tokens=1,2" %%i in (%tmpfile%) do set PostBldMach=%%j&goto :Next
:Next
for /F "skip=1 tokens=1,2" %%i in (%tmpfile%) do (
echo xcopy /DEIFY /exclude:%excludefiles% %%j %PostBldMach%
xcopy /DEIFY /exclude:%excludefiles% %%j %PostBldMach%
)
del %tmpfile%
del %excludefiles%