[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
        'etc.
End Select

The documentation for the Windows Scripting Host can be downloaded at
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-
8A76-1C4099D7BBB9

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.
http://www.StressedPuppy.com
********************************************************
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

Other related posts: