Sorry guys, wanted to post this before new years but forgot :-D
#!/usr/bin/php
$clientPath = "/home/kalgecin/pennies/src/pennies";
$sendToAddress = "PC26wxsNJXKi6732uKTmvjkLMQMjZBPzJ3";
$amountPerBatch = 50000000.00;
$balance = `$clientPath getbalance $fromAccount`;
echo "Your balance: $balance\n";
while($balance > $amountPerBatch){
echo $balance.' '.`$clientPath sendtoaddress $sendToAddress $amountPerBatch`;
$balance -= $amountPerBatch;
}
only edit
$clientPath = "/home/kalgecin/pennies/src/pennies";
$sendToAddress = "PC26wxsNJXKi6732uKTmvjkLMQMjZBPzJ3";
$amountPerBatch = 50000000.00;
with your parameters. Tested on linux. It might work on windows with php installed too i guess
Happy new years :-D