From the menu, Tools—>Platform Builder—>PBScripts you can create and run PBScripts
Figure 25.4: PBScripts Menu
These scripts are simply text files and are stored in: Documents\PBScripts as .pbscript files:
Figure 25.5: PBScripts folder
You can edit the scripts from here using notepad, or even create new ones. You would normally create the scripts from Configure Scripts:
Figure 25.6: The Configure Scripts Dialog-1
The drop down list at the top allows you to choose which script to run or edit.
Figure 25.7: Configure Scripts Dialog-2
Here the CEComponentWiz script has been selected. This script is installed as part of the CEComponnetWiz installation. It is simply a text file:
VSVersion = 9.0 Name=CEComponentWiz RunPBCmd("C:\Program Files (x86)\Embedded101\CEComponentWiz\CEComponentWiz.exe")
VSVersion = 9.0
Name=CEComponentWiz
RunPBCmd("C:\Program Files (x86)\Embedded101\CEComponentWiz\CEComponentWiz.exe")
Listing 25.1 CEComponentWiz PBScript
To launch CEComponentWiz from Visual Studio 2012, you select it as above and run it here.
Once selected you can rerun it again from Run Active Script.
A further example of a PBScript, as follows is to run CerdispHost fro Compact 7 Platform Builder (Visual Studio). Note that this remote display component is not in the Compact 2013 Catlog but there is as an envisaged third party project to recreate it.
VSVersion=9.0Name=CERDISPHostRunCmd("e:\wince700\public\common\oak\bin\i386\cerhost.exe -c")
NEXT: 25.5 Running CEComponentWiz
Click here to provide feedback and input