Results 1 to 2 of 2

Thread: VB - App.path

  1. #1

    Thread Starter
    Hyperactive Member phrozeman's Avatar
    Join Date
    Apr 2000
    Location
    Netherlands
    Posts
    442

    VB - App.path

    VB Code:
    1. Public Function GetAppPath()
    2.     GetAppPath = IIf(Right(App.Path, 1) = "\", App.Path, App.Path & "\")
    3. End Function
    4.  
    5. 'Usage:
    6.  
    7. Msgbox GetAppPath

    This will get the app.path including the "\" on the end, i know it's an simple function but i use it many times in my apllications.

    A time ago i always used:
    Exec App.path & "\test.exe", that will work only if your app is not in the root of an drive.
    There's a certain mystique when I speak, that you notice that it's sorta unique, cause you know it's me

  2. #2
    Member
    Join Date
    Nov 2002
    Posts
    54
    for faster results, you should use If...Else and Right$()

    lp,
    Darko

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