writing batch file to automate this thing