capFitting bat/sh files