buttons, batches and C++