473,399 Members | 3,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

List Directory- Include Hiden files - Access !?

Hi,
I am using this code in access form to list everything in directory but it did`not show hidden or system files.
how works this code to list all files include hidden or system files.?
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2. Dim LoadFiles   As String
  3. Dim strFill     As String
  4.  
  5. LoadFiles = dir$("c:\*.*")
  6. Do While LoadFiles > ""
  7. strFill = strFill & LoadFiles & ";" 
  8. LoadFiles = dir$
  9. Loop
  10. lstFiles.RowSource = strFill
  11.  
  12. End Sub
Thank you
Nov 17 '08 #1
3 2772
ADezii
8,834 Expert 8TB
Try:
Expand|Select|Wrap|Line Numbers
  1. Dim LoadFiles As String
  2. Dim strFill As String
  3.  
  4. LoadFiles = Dir$("c:\*.*", vbbHidden Or vbSystem)
  5.  
  6. Do While LoadFiles <> ""
  7.   strFill = strFill & LoadFiles & ";"
  8.   LoadFiles = Dir$
  9. Loop
  10.  
  11. lstFiles.RowSource = strFill
Nov 19 '08 #2
Try:
Expand|Select|Wrap|Line Numbers
  1. Dim LoadFiles As String
  2. Dim strFill As String
  3.  
  4. LoadFiles = Dir$("c:\*.*", vbHidden Or vbSystem)
  5.  
  6. Do While LoadFiles <> ""
  7.   strFill = strFill & LoadFiles & ";"
  8.   LoadFiles = Dir$
  9. Loop
  10.  
  11. lstFiles.RowSource = strFill

It Works Many thanks ......
Nov 20 '08 #3
ADezii
8,834 Expert 8TB
It Works Many thanks ......
Glad it works for you.
Nov 20 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: jajoo | last post by:
Hi everyone, I am trying to send files with multipart/form-date. Everything is ok with the send. But when I am receiving the files I should specify a directory where the files to be saved. The...
0
by: Webmaster | last post by:
Hi everyone... I know this isn't strictly a php/mysql ng, but I was hoping maybe someone here knows both languages and is willing to help. I have a directory of text files that i'd like to...
18
by: Exits Funnel | last post by:
Hello, I'm a little confused about where I should include header files and was wondering whether there was some convention. Imagine I've written a class foo and put the definition in foo.h and...
9
by: Henry Fr?d?ric | last post by:
I am currently working in Aisin-AW, in development of navigation systems (embedded SW). Since a few weeks, we are checking our source code with splint. We encounter this problem. I hope this...
7
by: Matt Jensen | last post by:
Howdy I want to simulate with .Net what I used to do with classic ASP where you would have a series of include files with utility functions that you would include when you needed them. I read...
3
by: Rares Vernica | last post by:
Hi, Is it a good practice to include other .h files in a .h file? For example, if I have a .h file that uses other two .h files I have two options: 1. include the two used .h files in the .h...
3
by: Kimera.Kimera | last post by:
I'm trying to write a program in VB.net 2003 that basically deletes all files, folders, sub-folders and sub-sub folders (etc). The program is simply for deleting the Windows/Temp folder contents,...
1
by: ahammad | last post by:
Hello, I would like to scan a certain directory for XML files. Then I want to take in every XML file, read it, and stores the contents as a string in an array. For example, if the directory has...
7
by: paul86 | last post by:
Hi all, I have a vb question that i'm hoping I can get some help with. I have a directory of excel files (probably about 1000) of them. They are quote sheets for the company I work for, and they...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.