Can you show us the actual Send Event command that you are using?
In org. format after conversion FM 6 > 12:
OR after edit to FM12 format
Both give a bad result...
1 of 1 people found this helpful
The send event uses the regular Windows path format not hte "file:/" FM format.
Since the Send Event basically hands off to Windows, there is not a whole lot that you can control from inside FM. What does the code look like in your setup.exe that asks for the working folder? I probably would not rely on something implicit like that, but pass the path as parameter to the exe.
Wim, i’ve done some investigation on the code. In this case we are talking about +/- 50 applications launched by the Send Event and all are compiled WinBatch applications.
The line in question is: My_Path = DirGet()
This function gets the working directory and is fine for FM 6 (via Send Message).
I agree that the Send Event hands off to Windows, but we see that the FM12 handoff is somehow different. Maybe FM changed the way how they make the call to the external program. So i wend looking for a replacement to get the folder and i found it.
Replaced the above line to:
My_EXE = IntControl(1004, 0, 0, 0, 0) ; Internal Control function going deeper into the system.
My_Path = Filepath(My_EXE)
This works for FM6 and FM12!
Thanks for pointing me in the good direction and the best greetings from Belgium!
Thanks for posting back with your solution!