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

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -