CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2000
    Location
    NM
    Posts
    122

    Getting apppath and windows version

    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..)


  2. #2
    Join Date
    Apr 2001
    Location
    Salt Lake City, UT
    Posts
    135

    Re: Getting apppath and windows version

    To get the current path it's just app.path
    I am not sure about how to get the OS version though
    sorry.

    ~goddess

    "There are no stupid questions, but there are a lot of inquisitive idiots."

  3. #3
    Join Date
    Mar 2000
    Location
    Arizona, USA
    Posts
    493

    Re: Getting apppath and windows version

    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





    Kris
    Software Engineer
    Phoenix, AZ USA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured