Donate SIGN UP

File Listing By Exception?

Avatar Image
philg | 14:14 Fri 21st Dec 2012 | Computers
2 Answers
Hi all

This is really a DOS question (remember that!)

I have copied thousands of digital photos from a usb drive to a NAS and find (with DOS dir) that I have MORE files in the target folders than I started with!

It's probably because there's some garbage other than .jpg files lying around, but I am having trouble reconciling the file counts

What I'd LIKE to do, is do a recursive directory listing of all files that do NOT have a .jpg extenstion - but can't figure out how to do it

Any suggestions?

Cheers

Phil G
Gravatar

Answers

1 to 2 of 2rss feed

Best Answer

No best answer has yet been selected by philg. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
DOS is still very useful! From the root directory, use this command:

dir /s | findstr /vi ".jpg"

/s = include all subdirectories, /vi = exclude the given string and not be case-sensitive.

That should show everything in every folder that doesn't have .jpg in the filename.
If you'd previously viewed the files on a Windows machine, you probably have a Thumbs.db file in each folder.

1 to 2 of 2rss feed

Do you know the answer?

File Listing By Exception?

Answer Question >>

Related Questions

Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.