Windows Batch File to Find String in Filename -


how can find string in filename using windows batch command. systems generated files has dates in file name "xxx_2014-04-11_v1.xml", want read file name verify date before performing other operation. how can achieved?

something this:

for /f "delims=_ tokens=2" %%a in ('echo "xxx_2014-04-11_v1.xml"') echo %%a 

Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -