The attached jpg shows you where to find the strip path function.
It will accept a path and will return two values. One is the stripped path, which is the passed path with the last part "stripped" off.
eg
"C:\FolderPath\VIName.VI" -> "C:\FolderPath"
Remember that the path of a VI in an executable differs from the development.
Unless you play special games, the path of a sub-VI in an executable is;
C:\FolderPath\VIName.exe\SubVIName.vi
So, you have to strip twice in an executable.
Ben