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.
strSourcePath = Left(WScript.ScriptFullName,Len(WScript.ScriptFullName) _
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"