methods for generating LFs from .cmd files