How do I access hidden files from within vb6.0? It's unlike ordinary files!! VB does not even sense that file in a folder.
Accessing Hidden Files
Collapse
X
-
Hi.
First you didn't say what code you are using. You have two method to open file using vb6, FileSystemObjec t class and Open keyword, and I was testing these two methods and all work well and no problem while opening hidden files.
Waiting your reply,
GOOD LUCKLast edited by Killer42; Nov 19 '07, 01:42 AM. -
Originally posted by vdraceilHow do I access hidden files from within vb6.0? It's unlike ordinary files!! VB does not even sense that file in a folder.
For instance, when you say "from within VB" do you mean that you are in the VB6 IDE and just want to use File | Open to open something like a FRM file, which is hidden? Or do you want your code to open a file, or what? And is the problem actually in opening the file (which from AHMEDYO seems to have done successfully) or in finding the file? They're not the same thing. Plus, you don't necessarily have to be able to see a file to open it.
While you have a think about the responses so far, you might want to consider the following...
- If using the Dir() function to retrieve file names, you can specify in the attributes argument to include hidden files.
- If using FileSystemObjec t, here's what the online help says about the Folder object... "Returns a Files collection consisting of all File objects contained in the specified folder, including those with hidden and system file attributes set."
Comment
Comment