How to create a .bat file which compares the files in a folder with a xml file -


i want create .bat file compares files in folder xml file having file names. should not order. give folder path , xml file. output want list of files missing in folder

not tested:

@echo off  set "xml_file=c:\xml.xml" set "directory=c:\dir\"  %%$ in ("%directory%*") (    fc "%xml_file%" "%%~f$" >nul 2>nul && (      echo "%xml_file%" ,       echo "%%~f$" identical      color   ) || (      echo "%xml_file%" ,       echo "%%~f$" not identical !!!      color   )  )  

change path file , directory @ beginning .


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -