Shell. explore (méthode)
Ouvre un dossier spécifié dans une fenêtre de l’Explorateur Windows.
Syntaxe
Shell.Explore(
vDir
)
Shell.Explore( _
ByVal vDir As Variant _
)
Paramètres
-
vdir [ dans]
-
Type : variante
Dossier à afficher. Il peut s’agir d’une chaîne qui spécifie le chemin d’accès au dossier ou l’une des valeurs ShellSpecialFolderConstants . Notez que les noms de constantes trouvés dans ShellSpecialFolderConstants sont disponibles dans Visual Basic, mais pas dans VBScript ou JScript. Dans ce cas, les valeurs numériques doivent être utilisées à leur place.
Valeur renvoyée
JScript
Cette méthode ne retourne pas de valeur.
VB
Cette méthode ne retourne pas de valeur.
Exemples
L’exemple suivant montre l' exploration en cours d’utilisation. L’utilisation appropriée est indiquée pour JScript, VBScript et Visual Basic.
Langage
<script language="JScript">
function fnShellExploreJ()
{
var objShell = new ActiveXObject("shell.application");
objShell.Explore("C:\\");
}
</script>]]>
VBScript
<script language="VBScript">
function fnShellExploreVB()
dim objShell
dim ssfWINDOWS
ssfWINDOWS = 36
set objShell = CreateObject("shell.application")
objShell.Explore(ssfWINDOWS)
set objShell = nothing
end function
</script>
Visual Basic :
Private Sub fnShellExploreVB()
Dim objShell As Shell
Set objShell = New Shell
objShell.Explore (ssfPERSONAL)
Set objShell = Nothing
End Sub
Configuration requise
| Condition requise | Valeur |
|---|---|
| Client minimal pris en charge |
Windows 2000 professionnel, applications de [ Bureau Windows XP uniquement] |
| Serveur minimal pris en charge |
Windows 2000 Server - [Applications de bureau uniquement] |
| En-tête |
|
| MIDL |
|
| DLL |
|