Compartilhar via


Método IShellDispatch.FileRun

Exibe a caixa de diálogo Executar para o usuário.

Sintaxe

IShellDispatch.FileRun()

IShellDispatch.FileRun()

Parâmetros

Esse método não tem parâmetros.

Valor retornado

JScript

Esse método não retorna um valor.

VB

Esse método não retorna um valor.

Comentários

Esse método é implementado e acessado por meio do método Shell.FileRun .

Exemplos

Os exemplos a seguir mostram o uso de FileRun em JScript, VBScript e Visual Basic.

Jscript:

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

Vbscript:

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

        set objShell = nothing
    end function
 </script>

Visual Basic:

Private Sub fnShellFileRunVB()
    Dim objShell As Shell

    Set objShell = New Shell
    objshell.FileRun

    Set objShell = Nothing
End Sub

Requisitos

Requisito Valor
Cliente mínimo com suporte
Windows 2000 Professional, Windows XP [somente aplicativos da área de trabalho]
Servidor mínimo com suporte
Windows 2000 Server [somente aplicativos da área de trabalho]
Cabeçalho
Shldisp.h
IDL
Shldisp.idl
DLL
Shell32.dll (versão 4.71 ou posterior)