Hello,
I've been trying to find the solution in the forums, but I can't seem to get the right one. What I want to do is to start an .exe file from a command button. This on its own is not that difficult but I wish to be able to use the relative path it is in depending on where the db is installed.
Dim stAppName As String
stAppName = "file.exe"
Call Shell(stAppName, 1)
The stAppName does work when you use the full path (e.g. c:\temp\file.exe), but not with just the file name.
Is there a way to start an .exe with a relative path? Or read the path where the db(it's in the same spot as the .exe) is in and then use that somehow in the stAppName command?
Thanks
Tom
I've been trying to find the solution in the forums, but I can't seem to get the right one. What I want to do is to start an .exe file from a command button. This on its own is not that difficult but I wish to be able to use the relative path it is in depending on where the db is installed.
Dim stAppName As String
stAppName = "file.exe"
Call Shell(stAppName, 1)
The stAppName does work when you use the full path (e.g. c:\temp\file.exe), but not with just the file name.
Is there a way to start an .exe with a relative path? Or read the path where the db(it's in the same spot as the .exe) is in and then use that somehow in the stAppName command?
Thanks
Tom