Condividi tramite


Metodo IShellDispatch.FileRun

Visualizza la finestra di dialogo Esegui all'utente.

Sintassi

IShellDispatch.FileRun()

IShellDispatch.FileRun()

Parametri

Questo metodo non presenta parametri.

Valore restituito

JScript

Questo metodo non restituisce valori.

VB

Questo metodo non restituisce valori.

Commenti

Questo metodo viene implementato e accessibile tramite il metodo Shell.FileRun .

Esempio

Negli esempi seguenti viene illustrato l'uso di FileRun in 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

Requisiti

Requisito Valore
Client minimo supportato
Windows 2000 Professional, Windows XP [solo app desktop]
Server minimo supportato
Windows 2000 Server [solo app desktop]
Intestazione
Shldisp.h
IDL
Shldisp.idl
DLL
Shell32.dll (versione 4.71 o successiva)