March 11, 200521 yr Hi all,Need a little help...I am doing a directory list and want to list all of the matching files accept the ones that have eng in them... i have it partly working see below.for /f "usebackq delims= tokens=1,2*" %%i in (`dir /s "%cd%\%TmpPath%\*.chm" dir /s "%cd%\%TmpPath%\*.txt" dir /s "%cd%\%TmpPath%\*.wav"`) do IF /i "%%k" NEQ "*eng.*" echo %%ii get the directory listing fine, but it still lists the files with eng in them???Any help would be appeciated
March 11, 200521 yr That will get files that end with "eng".To get all files with "eng" anywhere in the name use "*eng*" without the dot
March 11, 200521 yr Author That will get files that end with "eng".To get all files with "eng" anywhere in the name use "*eng*" without the dot<{POST_SNAPBACK}>Thanks dman for your post, however that is not resolved the issue. any other ideas?
Create an account or sign in to comment