[THIN] Re: OT - VB Script

  • From: "Paul DeHaan" <wppad@xxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>, <cherie.watts@xxxxxxxxxxx>
  • Date: Wed, 15 Sep 2004 13:31:08 -0400

It works just like a variable, only it is read-only.  Here's how you use a 
constant in code:

�>code begin<---

Const myDomain = "microsoft.com"
wscript.echo myDomain

�>code end<--

As for changing the text color, you would have to set it using the built in 
system command Color. (try color /? from cmd).  I'm imaging that you are using 
cscript as your interpretor right?

Regards,
Paul DeHaan

>>> cherie.watts@xxxxxxxxxxx 09/13/04 07:51PM >>>

Hi Guys

I am unable to find syntax information on how to use a VB constant. I can 
normally work them out, but not this one. I am sure it is something basic as 
well.

I want to change the colour of text I am echoing to the screen.

I have found VB color constants below. But I am unable to change the color of 
the Wscript.echo commands.

Can someone please advise or point me to a website I can get this info.

Humbly Thanks

Cherie

vbBlack &h00 Black 
vbRed &hFF Red 
vbGreen &hFF00 Green 
vbYellow &hFFFF Yellow 
vbBlue &hFF0000 Blue 
vbMagenta &hFF00FF Magenta 
vbCyan &hFFFF00 Cyan 
vbWhite &hFFFFFF White 

                                                                      

********************************************************
This Weeks Sponsor triCerat:
Have you had your fill of printing support calls, unauthorized apps running on 
unsecured Terminal Servers, profile headaches, and application performance 
problems? Join us and learn how you can have a less demanding on-demand 
enterprise!
http://www.tricerat.com/?page=events#register 
********************************************************** 
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm 
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm

********************************************************
This Weeks Sponsor triCerat:
Have you had your fill of printing support calls, unauthorized apps running on 
unsecured Terminal Servers, profile headaches, and application performance 
problems? Join us and learn how you can have a less demanding on-demand 
enterprise!
http://www.tricerat.com/?page=events#register
**********************************************************
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm

Other related posts: