but I move it from lets say "C:\program" to "C:\x\program" and i want to execute and exe from inside the directory that orginal path would have been "C:\program\toolbox\something.exe" and in my code was just Shell("C:\program\toolbox\something.exe" but since it is moved all of these paths are broken. How can i tell it to execute the program without having it bound to an absolute path? So I will still be able to move the program from place to place.
This is what I've tried so far but to no avail.
Code: Select all
Dim rootpath As String
rootpath = System.Reflection.Assembly.GetExecutingAssembly.Location()
Shell(rootpath & "toolbox\something.exe")
Sorry if this was a bit wordy wasnt sure how to describe it.