Data.Series.Generate
Top  Previous  Next


Clears the [Data] section and generates a number series in specified column

·Create rows with numbered items for testing purposes  
·Create account names from scratch when the SamAccount name series generator can not be used, for example in a Linux or Novell server script or in a pure AD script  

Use Data.Column.Fill to fill a column on existing rows.

Category
Data section

Script section
[Init]

Data.Series.Generate Column, Type, Prefix, Count

Column
[Data] section destination column  

Type
Type of series to generate, options: Decimal | Hex | Prefix  
·Decimal = prefix + decimal number, example: "acc1", "acc2", "acc3"  
·Hex = prefix + hexadecimal number, example: "acc1", "acc2", .., "accA", .. , "accF"  
·Prefix = just prefix, no trailing number, all items identical, example: "acc", "acc", "acc"  
 
Prefix
Static text inserted before series  

Count
Number of items to generate  

Example
[Settings_Begin]
BatchSettings.Delimiter=;
BatchSettings.MarkerCol=3
[Settings_End]

[Init_Batch_Begin]
Data.Series.Generate 1,decimal,acc,5   
[Init_Batch_End]

[Batch_Begin]
MessageBox Done!   
[Batch_End]

[Data_Begin]
[Data_End]

After the above script is executed the [Data] section looks like this:

[Data_Begin]
acc1
acc2
acc3
acc4
acc5
[Data_End]