Can find the correct command type for the file