windows also has a "where" command but this batch form should go as far back as XP I believe