Jump to content

Batch Help With Directory Listing


Recommended Posts

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 :)

Link to comment
Share on other sites


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...