Added "flush" operation to btach file commands