Configuring a Premakeimg.bat File (Windows CE 5.0)

Send Feedback

The Premakeimg.bat file uses the Bibhelper.vbs script, which allows you to change file attributes for entries in the FILES or MODULES sections of .bib files. For more information about the Bibhelper.vbs script, see Bibhelper Script.

To configure the Premakeimg.bat file

  1. In %_WINCEROOT%\PBWorkspaces\MyProject\MyDirectory, create a Premakeimg.bat file.

  2. In the Premakeimg.bat file, add the following commands:

    • copy %_FLATRELEASEDIR%\ce.bib %_WINCEROOT%\PBWorkspaces\MyProject\MyDirectory\ce_orig.bib
    • cscript %_MAKEENVROOT%\bibhelper.vbs %_WINCEROOT%\PBWorkspaces\MyProject\MyDirectory\MyPlatform_bib.cfg %_WINCEROOT%\PBWorkspaces\MyProject\MyDirectory\ce_orig.bib %_FLATRELEASEDIR%\ce.bib
  3. In %_WINCEROOT%\PBWorkspaces\MyProject\MyDirectory, add a MyPlatform_bib.cfg file.

  4. In the MyPlatform_bib.cfg file, add entries for the modules for which you want to change the attributes.

    The following table shows how to add an attribute to a file or remove an attribute from a file. When specifying multiple attributes, specify them on separate lines in the .cfg file.

    Entry Description
    Toolhelp.dll +C Adds the compression attribute to the Toolhelp.dll file.
    Toolhelp.dll -C Removes the compression attribute from the Toolhelp.dll file.
  5. From the Platform menu, choose Settings.

  6. On the Custom Build Action tab, in the Build step field, choose Pre-Make Image.

  7. Add a custom build action by choosing New.

  8. Add the following command to the Custom Build Action window:

    copy %_WINCEROOT%\PBWorkspaces\MyProject\MyDirectory\premakeimg.bat %_FLATRELEASEDIR%

See Also

Binary Image Builder File

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.