Results 1 to 4 of 4

Thread: [RESOLVED] Find picture files on my PC

  1. #1

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Resolved [RESOLVED] Find picture files on my PC

    It's been so long since I've had a need to do this that I've forgotten how, but using Dir or FSO how do I find picture files in a particular folder on my PC?

  2. #2
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Find picture files on my PC

    That's kind of vague. Do you count icons? Or count SVG and other non-native formats as "pictures" too?

    A lot depends on what you are going to do, because some approaches will return formats you don't care about.

    Even with a list of file extensions to filter for manually there are sometimes variations to consider (JPG and JPEG and JFF). On some systems those will all be registered as images, while on others they won't. That has an impact on stuff like Windows Search queries.

  3. #3
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    5,264

    Re: Find picture files on my PC

    I'd really have to dig deep, because i know i've done something like this in the past

    EDIT: Think i found it: https://www.vbforums.com/showthread....=1#post5272397

    Yes, it's for deleting files, but there is also a recursive search in there.
    MAybe you can use one of the other constants https://learn.microsoft.com/en-us/wi...hfileopstructa
    Last edited by Zvoni; Oct 19th, 2022 at 05:29 AM.
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

  4. #4

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width