No problem, but I still don't understand why you can replace EZSyncInt.exe with an auto-it script
. Anyway, here is the Delphi code assuming the program is called EZSync.exe and EZSyncInt.exe is located in the same directory. If it doesn't work just give me a full path to the EXE that should run.
Code:
program ezsyncint;
uses
Windows,
Forms;
{$R *.res}
var
h : hwnd;
begin
h := FindWindow(0, 'EZSync Client');
if (h <> 0) then
ShowWindow(h, SW_SHOWNORMAL)
else
WinExec('EZSync.exe', SW_SHOWNORMAL);
end.
Bookmarks