Επεξεργασία

Κοινή χρήση μέσω


IShellDispatch.FindFiles method

Displays the Find: All Files dialog box. This is the same as clicking the Start menu and then selecting Search.

Syntax

IShellDispatch.FindFiles()

IShellDispatch.FindFiles()

Parameters

This method has no parameters.

Return value

JScript

This method does not return a value.

VB

This method does not return a value.

Remarks

This method is implemented and accessed through the Shell.FindFiles method.

Examples

The following examples show the use of FindFiles in JScript, VBScript, and Visual Basic.

JScript:

<script language="JScript">
    function fnShellFindFilesJ()
    {
        var objShell = new ActiveXObject("shell.application");
        
        objShell.FindFiles();
    }
</script>

VBScript:

<script language="VBScript">
   function fnShellFindFilesVB()
       dim objShell
       
       set objShell = CreateObject("shell.application")
       objshell.FindFiles

       set objShell = nothing
   end function
</script>

Visual Basic:

Private Sub fnShellFindFilesVB()
    Dim objShell As Shell

    Set objShell = New Shell
    objShell.FindFiles

    Set objShell = Nothing
End Sub

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Shldisp.h
IDL
Shldisp.idl
DLL
Shell32.dll (version 4.71 or later)