`Felix` Posted March 11, 2005 Posted March 11, 2005 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
dman Posted March 11, 2005 Posted March 11, 2005 That will get files that end with "eng".To get all files with "eng" anywhere in the name use "*eng*" without the dot
`Felix` Posted March 11, 2005 Author Posted March 11, 2005 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?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now