Click to See Complete Forum and Search --> : Getting apppath and windows version


Codejoy
April 17th, 2001, 04:11 PM
I just need to know how from code i can get the current path of the current app (sorta like me.path) and also how to get the current version of windows that the program is running under (winnt or win98 etc..)

goddess_spanky
April 17th, 2001, 05:36 PM
To get the current path it's just app.path
I am not sure about how to get the OS version though
sorry.

~goddess

softweng
April 17th, 2001, 05:40 PM
Here is a link to a good class module to get the OS version.

http://www.freevbcode.com/ShowCode.Asp?ID=986

Goddess is right on the app path.
Do it like this:

dim strAppPath as string

'get The Application Path
strAppPath = App.Path