Results 1 to 2 of 2

Thread: Does anybody know how to use VB to find and copy files using the file suffix?

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2001
    Location
    Grand Rapids, MI
    Posts
    1

    Question Does anybody know how to use VB to find and copy files using the file suffix?

    I'm currently writing a program that needs to be able to search out and copy *.htm or *.html files from the history folder into a text file. If anybody knows a way to perform this action, please respond to this message.
    Thanks for your help.

    Chris

  2. #2
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    hi
    Just put a File List Box on ur form and set the following properties

    File1.Path = "C:\Your directory"
    File1.Pattern = "*.htm"

    U can loop thru the file list box in exactly the same way as u do with a normal listbox. do u know how to copy files once u get that far or do u need code for that?
    Regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

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