How to write script for creating queues for multiple hosts?

Hi,

I am new to mikrotik world. I am running a lan of more than 500 hosts connected from separate locations. We have recently increased our internet bandwidth which we generally control using several mikrotik router. Now I am ahead to write a script which will create simple queue for 254 hosts with 256Kb bandwidth for each hosts.

For example you can take the ip block of 192.168.0.0/24.

I know I can manually create them and that is fine. But I am looking for a simple way preferably using a script to create those queue and get them activate and running.

Can anyone help me on this please.

Regards,
Sayeed

http://forum.mikrotik.com/t/whats-wrong-with-the-script/64750/1