Results 1 to 2 of 2

Thread: a nudge in the right direction

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    1

    a nudge in the right direction

    We are creating a database that needs to read folders and see which files there are in. In addition to that we would like to extract a thumbnail form the file it finds in the folder. the files have the extensions rfa and rvt (Revit = CAD program) The windows explorer shows thumbnails of the files. I tried a program from vbaccelerator and that could extract a thumbnail for such a file but I couldn't turn it into a jpg for example.

    My question is should I continue looking for a vb solution or are there other languages who could do this for me. The end result should be that I have a separate thumbnail image for every file in the directory.

    thank you for your time.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: a nudge in the right direction

    Without knowing the details of that file format it's hard to say, but you could probably convert that VB6 program to VB.NET and then save to image as a JPEG.

    Folder searching is simple, with VB and .NET both providing methods to perform a recursive file search in one line of code. The issue with those methods is that they fail if an inaccessible folder is encountered. That means you cannot search your entire system drive that way. Writing your own recursive file search method would take no more than about 10 or 15 lines though, so it's not a big deal.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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