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.

29 lines
918 B

  1. @echo off
  2. setlocal
  3. set tgtdir=%3
  4. if "%tgtdir%"=="" set tgtdir=..\setup
  5. rem if "%2"=="" goto usg
  6. if not exist eprcid%2.gpd goto usg
  7. if not exist %tgtdir%\NUL goto usg
  8. if not exist gpdhdr.gpd goto nohdr
  9. set gpdname=%1%2
  10. set gpdname=%gpdname:"=%
  11. if exist %gpdname%.bdy goto concat
  12. :usg
  13. echo Usage: concat BodyName LocaleID TgtSubDir
  14. echo concatenate GPD file
  15. echo BodyName : GPD body name wothout locale char; ex. Eplp92s
  16. echo LocaleID : locale ID char (j=jpn/t=cht/c=chs/k=kor)
  17. echo TgtSubDir : target subdirectory (relative from gpd/(None)=..\setup)
  18. goto exit
  19. :nohdr
  20. echo Gpdhdr.gpd not found, execution aborted.
  21. goto exit
  22. :concat
  23. echo Concatenating %tgtdir%\%gpdname%.GPD...
  24. echo *GPDFileName: "%gpdname%.GPD">fn.tmp
  25. echo *Include: "STDNAMES.GPD">>fn.tmp
  26. copy gpdhdr.gpd+fn.tmp+gpdcmn.tmp+eprcid%2.gpd+%gpdname%.bdy %tgtdir%\%gpdname%.GPD>NUL
  27. del fn.tmp>nul
  28. :exit
  29. endlocal