I have a Delphi application that uses ShellExecute to invoke a second Delphi application when a button is clicked.
Applications are stored on the same server on the same network resource. Their paths are in the format:
const JobManager = 'Z:\Apps\Application 1\Application1.exe'; FeeManager = 'Z:\Apps\Application 2\Application2.exe';
A ShellExecute call is made as follows:
rh := FindWindow(PChar('TMF'), PChar('Edit Job Details')); if rh = 0 then begin ShellExecute(Handle, 'open', JobManager, nil, nil, SW_SHOWNORMAL); ...
Since we have three offices, we have copies of the Apps folder on each office server. On each server there is an โApplicationsโ folder for the share associated with โZ:โ
In one of the offices, we found a problem when applications cannot be found if the paths contain spaces. Since applications are direct copies of each other and work in other offices, the problem seems to be a machine.
Any ideas?
source share