|I need to be able to locate all files with a certain extension(.xof) on a server which contains hudreds of different directories. I want to collect all the .ini files from only certain directories to save time. I thought that the batch file I wrote would do this but alas it doesnt work.|
for /f %%w in ('dir %adc%*%block%* /b') do (
echo "for /r %adc%%%w %%x in (*.xof) do echo found these xofs for %1 %%x"
"for /r %adc%%%w %%x in (*.xof) do echo found these xofs for %1 %%x"
On the echo return statement I see:
"for /r x:\releases\nb1007q4 %x in (*.xof) do echo found these xofs for 1007 %x"
But when it does the actual run I see:
The system cannot find the path specified.
And if I run the echo returned statement with out the "" 's on a command line the for loop does return the .xof files I'm looking for. I feel like there is either something very simple I'm missing or this just cant be done. Please help.