kmltoshape batch files(kml) in your folder and you want to convert kml to shapefile open qgis go to python console import this script and change input and output path and run this file