How far back does File object - get Application Data folder go, win 98, win 98se or win 2000? Or is it just xp and vista?








How far back does File object - get Application Data folder go, win 98, win 98se or win 2000? Or is it just xp and vista?

On Windows 200 it's like on XP.
On Windows 9x it returns C:\Windows\Application Data (if c:\windows is the real name of the Windows directory). Note: you might have to create it before using it.








thanks Yves
Huh? Isn't this directory automatically created by Windows?Originally Posted by Yves

I don't remember if this folder is created by default on Windows 9x.








Windows version detection?
I'm trying to figure a way to detect, upon running, which windows version my app will be on. Using the OS object retrieves a version 6 for my XP sp2. According to what I found on wikipedia, xp sp2 should be a 5.??? version. Is the OS object correct or wiki?
Here is the list from wiki
http://en.wikipedia.org/wiki/Microsoft_Windows
http://en.wikipedia.org/wiki/Microsoft_Windows
--------------- 1-3
Release date Product name Version Notes
November 1985 Windows 1.01 1.01 Unsupported
November 1987 Windows 2.03 2.03 Unsupported
March 1989 Windows 2.11 2.11 Unsupported
May 1990 Windows 3.0 3.0 Unsupported
March 1992 Windows 3.1 3.1 Unsupported
October 1992 Windows
For Workgroups 3.1 3.1 Unsupported
July 1993 Windows NT 3.1 3.1 Unsupported
December 1993 Windows
For Workgroups 3.11 3.11 Unsupported
January 1994 Windows 3.2
(Chinese only) 3.2 Unsupported
September 1994 Windows NT 3.5 3.5 Unsupported
May 1995 Windows NT 3.51 3.51 Unsupported
---------------4
August 1995 Windows 95 4.0.950 Unsupported
July 1996 Windows NT 4.0 4.0 Unsupported
June 1998 Windows 98 4.10.1998 Unsupported
May 1999 Windows 98 SE 4.10.2222 Unsupported
September 2000 Windows Me 4.90.3000 Unsupported
---------------5
February 2000 Windows 2000 5.0.3700.6690 Extended Support until July 13, 2010[11]
October 2001 Windows XP 5.1.2600 Unsupported for RTM, SPack 1. Current for SPack 2.
March 2003 Windows XP
64-bit Edition 2003 5.2.3790 Unsupported
April 2003 Windows Server 2003 5.2.3790 Unsupported for RTM. for SPack 1, R2 and, SPack 2.
April 2005 Windows XP Professional
x64 Edition 5.2.3790 Current
July 2006 Windows Fundamentals
for Legacy PCs 5.1.2600 Current
July 2007 Windows Home Server 5.2.4500 Current
---------------6
November 2006 (volume licensing)/
January 2007 (retail)
Windows Vista 6.0.6000 Current
February 2008 (planned)
Windows Server 2008 6.0.6001 Future release
2010 or later (planned) Windows 7
(codenamed Blackcomb, then Vienna)
7.0 Future release

The value returned by the Get Windows Version expression of the OS object is specific to the OS object, it's not the real version of Windows, as explained in the help file. Because otherwise you couldn't distinguish between Windows 95, 98 and NT 4 that all have a Windows main version number equal to 4.
Documentation of the Get Windows Version function of the OS object :
0 = Windows 95
1 = Windows 98
2 = Windows ME
3 = Windows NT
4 = Windows NT 4
5 = Windows 2000
6 = Windows XP
7 = Windows Vista (or above)








Thanks again Yves, it was the only place I didn't research. Egg on my face again.That feature makes it very simple.
![]()








Clickers, here is something that may be of interest. It identifies where the (path) of special folders and virtual folders are suppose to be, for each version of windows starting from win 95.
http://en.wikipedia.org/wiki/Special_Folders

This page doesn't mention Vista.