search files on hard drive by vb 6.0
-
How can I search all the files available on my computer (C,D,E,F...) drives like search functionality in windows. The application should search the subfolder as well in the drives. I want to have a list of all the files available in my computer. Thanks In Advance
-
How can I search all the files available on my computer (C,D,E,F...) drives like search functionality in windows. The application should search the subfolder as well in the drives. I want to have a list of all the files available in my computer. Thanks In Advance
That's going to be slooow.. The recipe first;
- List all drives (Google for a snippet)
- Create a recursive function to loop all folders in that drive
- Proces all files and folders that the function returns
ejaz_pk wrote:
like search functionality in windows.
That one allows you to search "within" files, and is more complex then the recipe above. Do you want to "list" all your files, or do you want to search their contents?
I are Troll :suss:
-
That's going to be slooow.. The recipe first;
- List all drives (Google for a snippet)
- Create a recursive function to loop all folders in that drive
- Proces all files and folders that the function returns
ejaz_pk wrote:
like search functionality in windows.
That one allows you to search "within" files, and is more complex then the recipe above. Do you want to "list" all your files, or do you want to search their contents?
I are Troll :suss:
-
How can I search all the files available on my computer (C,D,E,F...) drives like search functionality in windows. The application should search the subfolder as well in the drives. I want to have a list of all the files available in my computer. Thanks In Advance
Easily done by shelling to a DOS command that creates a text file, then parsing this if necessary: The following DOS command will create a file called Output.txt with a list of all files (not including system or hidden) on drive c: - the /s recurses subdirectories, and the /b restricts the output to filename only.
DIR C: /s /b >Output.txt
==================================== Transvestites - Roberts in Disguise! ====================================