Shell.FindComputer method
Displays the Search Results: Computers dialog box. The dialog box shows the result of the search for a specified computer.
Syntax
Shell.FindComputer()
Shell.FindComputer()
Parameters
This method has no parameters.
Return value
JScript
This method does not return a value.
VB
This method does not return a value.
Examples
The following example shows FindComputer in use. The result of this code is the same as pressing the Start button, clicking Search, clicking the Printers, computers, or people option, then clicking A computer on the network. Proper usage is shown for JScript, VBScript, and 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
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
IDL |
|
DLL |
|