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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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