Metode IShellDispatch.FindComputer
Menampilkan kotak dialog Hasil Pencarian: Komputer . Kotak dialog memperlihatkan hasil pencarian untuk komputer tertentu.
Sintaks
IShellDispatch.FindComputer()
IShellDispatch.FindComputer()
Parameter
Metode ini tidak memiliki parameter.
Menampilkan nilai
JScript
Metode ini tidak mengembalikan nilai.
VB
Metode ini tidak mengembalikan nilai.
Keterangan
Metode ini diimplementasikan dan diakses melalui metode Shell.FindComputer .
Contoh
Contoh berikut menunjukkan penggunaan FindComputer di JScript, VBScript, dan 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
Persyaratan
Persyaratan | Nilai |
---|---|
Klien minimum yang didukung |
Windows 2000 Professional, Windows XP [hanya aplikasi desktop] |
Server minimum yang didukung |
Windows 2000 Server [hanya aplikasi desktop] |
Header |
|
IDL |
|
DLL |
|