Do a set fields where you set a field to:

$PROCESS$ cmd /C ver


The process will likely return a blank line at the beginning, so you might need 
to address that. Whenever you do a set fields with it, you might not see the 
value it returns if the blank line is there, just expand your field so you can 
see more than one line.  You can also set a temp field to the result of this, 
then set the main field to a REPLACE of the temp field, as you cannot do a 
REPLACE directly against a $PROCESS$.

Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
http://www.5pointleader.com
http://www.lcibest.com
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI(r) Level 3 Rated Company
________________________________
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of Walters, Mark
Sent: Thursday, June 12, 2008 8:35 AM
To: [email protected]
Subject: Re: $OS$ (AR_KEYWORD_OS)

The User Tool makes use of the Windows GetVersionEx call but only distinguishes 
between

Windows 95
Windows 2000
Windows XP

Everything else is  "Windows NT or NT Server".  You may be able to do a "cmd /c 
ver" RUN PROCESS in a SET FIELDS action to get the value from the OS command 
line for comparison purposes?

Mark

From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of Ian Trimnell
Sent: 12 June 2008 14:13
To: [email protected]
Subject: Re: $OS$ (AR_KEYWORD_OS)

**
David Morgan wrote:

Ian



You can use the $OS$ keyword which is fine, but you may want the

$VERSION$ keyword instead?





OS      The operating system of the machine on which a process is

running. You can

        use this keyword to build workflow that executes conditionally

based on the

        current operating system.

        Web applications do not support the $OS$ keyword; it will return

NULL.



VERSION

        The software version running on the client (active links) or

server (filters and

        escalations). This keyword includes any applicable patch number.

        Note: The $VERSION$ keyword might not be interpreted correctly

in workflow

        running on pre-5.0 UNIX user tool clients. Use the $OS$ keyword

in

        qualifications to detect UNIX user tool clients.





Regards

Dave Morgan

Dave,

I am aware of the Version keyword and I do check for it.  What I am trying to 
do is warn users who have Vista installed on their PC to upgrade to V7.0.1 if 
they are running V7.0.0 or earlier.  I am wanting to include the word 'Vista' 
in the the message window, but how can I definitely tell that they are running 
Vista if the OS string is the same for Windows 2003 and Vista?

Ian
________________________________
Ian Trimnell, AR System Lead Developer (amongst other jobs),
Specialist Support & Information Team, Academic & Administrative Computing 
Service
Open University, MILTON KEYNES, UK
Phone: 01908 653741   web: http://www.open.ac.uk/
The Open University is incorporated by Royal Charter (RC 000391), an exempt 
charity in England & Wales and a charity registered in Scotland (SC 038302).
__Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" html___
__Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" html___

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to