This sample code stores the directory path where the script was started in a variable.
It’s usefull because you can move the script wherever you want (even UNC locations) and the paths remains correct.
The returned String contains already a trailing slash () so you just have to add the rest of the path or the exe
strSourcePath & "foo.exe" and not
strSourcePath & "\foo.exe"