Jump to content

Recommended Posts

Posted

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 %%i

i get the directory listing fine, but it still lists the files with eng in them???

Any help would be appeciated :)


Posted

That will get files that end with "eng".

To get all files with "eng" anywhere in the name use "*eng*" without the dot

Posted
That will get files that end with "eng".

To get all files with "eng" anywhere in the name use "*eng*" without the dot

Thanks dman for your post, however that is not resolved the issue. any other ideas?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...