You can automate tasks in Kanzi Studio by executing Kanzi Studio commands on the command line interface. For example, use this approach when you want to export kzb files of a large number of Kanzi Studio projects on a build server.
For the list of available commands see Kanzi Studio command reference .
To automate Kanzi Studio tasks:
LoadProject
command followed by the path to the Kanzi Studio project you want to open, and save the script as MyScript.txt
.LoadProject "C:\KanziWorkspace\Projects\MyProject\Tool_project\MyProject.kzproj"
/Script
flag pointing to the script you created in the previous step.KanziStudio.exe /Script="C:\Users\username\Documents\MyScript.txt"
Use ExportBinary
command when you want to export a kzb file from a Kanzi Studio project.
To automate the exporting of kzb files:
# Open the project named MyProject. LoadProject "C:\KanziWorkspace\Projects\MyProject\Tool_project\MyProject.kzproj" # Export the kzb file to the location set in the Project > Properties in the Binary Export Directory property. # To export the kzb file to another location use: ExportBinary "Path\to\directory\MyProjectBinary.kzb" ExportBinary # Close Kanzi Studio. If you want to continue using Kanzi Studio after the script executes, comment out this line. ExitApplication
KanziStudio.exe /Script="C:\Users\username\Documents\MyScript.txt"