Solved

vbscript - which operating system is in use

Posted on 2002-06-10
4
143 Views
Last Modified: 2010-05-02
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
0
Comment
Question by:toffee
  • 2
4 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 100 total points
ID: 7066996
http://www.mvps.org/vbnet/index.html?code/system/getversionex.htm

Provides a VB example, to run this in Outlook you would need to convert the Public declarations to Private and paste this directly into a userform, or create a module and paste the code as-is and call the described method(s).
0
 

Author Comment

by:toffee
ID: 7068227
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.
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 7069331
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.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7873524
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
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now