[windows2000] Re: Hi

  • From: "Ray at work" <listray@xxxxxxxxxx>
  • To: <windows2000@xxxxxxxxxxxxx>
  • Date: Fri, 22 Oct 2004 13:19:24 -0400

The WshNetwork object has a ComputerName property.

Select Case WshNetwork.Computername
        Case "COMP1"
                ''do something
        Case "COMP2"
                ''do something else
End Select

The documentation for the Windows Scripting Host can be downloaded at

Ray at work 

> -----Original Message-----
> From: windows2000-bounce@xxxxxxxxxxxxx 
> [mailto:windows2000-bounce@xxxxxxxxxxxxx] On Behalf Of 
> Ibrahim, Mustafa

> Hi Glen,
> Would it be possible to use an "IF" command with this to say, 
> if a user is using a computer X then make print Y the default?

This Weeks Sponsor StressedPuppy.com Games
Feeling stressed out? Check out our games to
relieve your stress.
To Unsubscribe, set digest or vacation
mode or view archives use the below link.


Other related posts: