Link to home
Start Free TrialLog in
Avatar of toffee
toffee

asked on

vbscript - which operating system is in use

Can someone provide me with a vbscript (must work in Outlook 97) which will tell me which operationg system is in use, particularly NT 4.0 and Windows 2000.

Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of toffee
toffee

ASKER

TimCottee

Will this work with Outlook 97 which only has VBScript?  I'm only a novice but I thought I read somewhere you can't use API's with VBScript.
Outlook 97 has VBA rather than VBScript, VBScript is the scripting language used in client-side web pages whereas VBA is pretty close to the main VB IDE but has greater integration to the application that hosts it. It also has some limitations in terms of the kinds of objects you can use and create. However you can use API calls in VBA so there is no reason why this will not work. In fact I have used this and similar code in outlook 2000 with no problems.
Avatar of DanRollins
toffee, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Accept TimCottee's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer