list files in a folder


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: list files in a folder

  1. #1
    Join Date
    Oct 2005
    Posts
    2

    list files in a folder

    hi,

    How to list files in a folder & subfolder in a main folder store that file names in MS-Access database. Please reply me.

    For example

    H:\Folder1\SS\

    The SS folder contains other folders like LV-11, LV-1, LV-10

    I like to store it in database as

    DT-11 LV-11
    file1 file1
    file2 file2
    file3 file3
    file4 file4
    file5 file5
    file6 file6

    Please reply me.

  2. #2
    Join Date
    Dec 2003
    Location
    San Diego
    Posts
    202
    To access files and folders as objects and collections you can iterate through, utilize the File System Object (FSO).

    You can enter these file names into your Access database via the ADO connection object, amongst others.

    Resources:
    FSO

    ADO

    Database Connection Strings

    Good luck,
    Michael Sanchez
    Managing Technical Editor
    Forum Moderator
    FreeVBCode.com

  3. #3
    Join Date
    Oct 2005
    Posts
    2
    Hi Michael Sanchez,

    Thanks for your reply, for this links are of great help...thanks a ton...

    Ni2shiv

Similar Threads

  1. folder, subfolders, and text files
    By pantea in forum .NET
    Replies: 2
    Last Post: 05-24-2005, 04:36 PM
  2. Replies: 2
    Last Post: 04-22-2005, 04:06 PM
  3. Replies: 0
    Last Post: 07-24-2002, 10:11 AM
  4. ListBot Going Out of Business
    By Larry Rebich in forum vb.announcements
    Replies: 1
    Last Post: 06-28-2001, 02:22 PM
  5. list of documents within a folder
    By Bridget Wagner in forum Web
    Replies: 0
    Last Post: 03-20-2000, 12:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center