Shell. FindComputer, méthode
Affiche la boîte de dialogue résultats de la recherche : ordinateurs . La boîte de dialogue affiche le résultat de la recherche d’un ordinateur spécifié.
Syntaxe
Shell.FindComputer()
Shell.FindComputer()
Paramètres
Cette méthode n’a aucun paramètre.
Valeur retournée
JScript
Cette méthode ne retourne pas de valeur.
VB
Cette méthode ne retourne pas de valeur.
Exemples
L’exemple suivant montre FindComputer en cours d’utilisation. Le résultat de ce code est le même que si vous appuyez sur le bouton Démarrer , sur Rechercher, sur l’option imprimantes, ordinateurs ou personnes , puis sur un ordinateur sur le réseau. l’utilisation appropriée est indiquée pour JScript, VBScript et Visual Basic.
JScript :
<script language="JScript">
function fnShellFindComputerJ()
{
var objShell = new ActiveXObject("shell.application");
objShell.FindComputer();
}
</script>
VBScript
<script language="VBScript">
function fnShellFindComputerVB()
dim objShell
dim ssfWINDOWS
ssfWINDOWS = 36
set objShell = CreateObject("shell.application")
objShell.FindComputer
set objShell = nothing
end function
</script>
Visual Basic :
Private Sub fnShellFindComputerVB()
Dim objShell As Shell
Set objShell = New Shell
objShell.FindComputer
Set objShell = Nothing
End Sub
Configuration requise
| Condition requise | Valeur |
|---|---|
| Client minimal pris en charge |
Windows 2000 Professional, Windows XP [ desktop apps uniquement] |
| Serveur minimal pris en charge |
Windows 2000 Server - [Applications de bureau uniquement] |
| En-tête |
|
| MIDL |
|
| DLL |
|