NEED HELP to Program a Batching System

Any Suggestion will help me a lot