What is app.path?How to create app path ?

What is app.path ? How to create app path ??

App.path is a function which returns a string with “\” character at the end if the path is the root drive. For example (“C:\”). But without that character (“\”)  if it isn’t ( example “c:\program files”). Most of the time we need the “\” at the end, so this function saves you the inconvenience of adding it every time.

—————–
Public Function AppPath() As String
Dim sAns As String
sAns = App.Path
If Right(App.Path, 1) <> “\” Then sAns = sAns & “\”
AppPath = sAns
End Function

How to create app path??

You can run application in Windows XP from the Run dialog box. Just perform the steps below:

1. Run regedit and go to  HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths
2. You can create a new key which you like. For example HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\whatever.exe
3. Now create a new string in the key folder that you created. Call it ‘path’ and modify the value to point the specific folder of your executable your running. for example  C:\ProgramFiles\whatever.
4. Now use some default string and modify its value to point to the executable you want to run.