VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

FilesSearch

Andrew Tang  (1 Submission)   Files/File Controls/Input/Output   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

This sub/function searches your hard drive(s) or directories for file(s) like the Windows 'Find Files or Folders...'. It uses mainly the Dir() command and can be used with any programs and visual basic I have encountered. This helps uses to quickly find a file or program for their applications.

Inputs
It needs two parameters, the start directory or drive and the extension. Example: FilesSearch "C:\", "*.txt".

Assumes
None that I am aware of.

Returns
Finds the file(s) with a particular extension from a start directory.

Side Effects
None. Slightly slower than the windows 'Find Files or Folder...' function.

API Declarations

Rate FilesSearch (8(8 Vote))
FilesSearch.bas

FilesSearch Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters