Scriptinterface Product manual

Scriptinterface 
Deleting a hard disk and creation of a partition

Example 3:

This example will supply a short illustration of the O&O DiskImage disk manager’s functionality.Hard disk "0" will first be deleted and then initialized as a Basic – MBR disk.After that, a 2 GByte partition will be created after position 32256 on the hard disk, aligned according to standard Windows disk alignment.

<DiskImageJob version="6.0">

<command name="initialized storage devices">

<disk_devices>YES</disk_devices>

</command>

<command name="clear drive">

<drivenumber>0</drivenumber>

<is_superfloppy>NO</is_superfloppy>

</command>

<command name="initialize disk">

<drivenumber>0</drivenumber>

<basic_disk>YES</basic_disk>

</command>

<command name="create partition">

<drivenumber>0</drivenumber>

<begin>32256</begin>

<size>2147483648</size>

<huge>YES</huge>

<default_windows_alignment>YES</default_windows_alignment>

</command>

</DiskImageJob>