I am calling up ghost explorer from within a php script using the exec() command
echo exec ('X:\scan_ghost\Ghostexp.exe -tf="X:\scan_ghost\temp\catalogue.txt""X:\upload\Stack.gho"');
This scans the ghost image and outputs the contents to a text file (which we later check for the occurrence of certain files)
All works fine untill ghost has reason to put up an alert window such as "Not a ghost image file" or "Stack.gho does not exist".
Because It has been called from php I do not see the message box or get the opportunity to respond to it. Therefore my php program hangs as it fails to complete as ghost explorer is still running. I am not really interested in the message box or the alert message as I can check for the absence of the txt file or its contents later.
So .....How do I get ghost explorer to close elegantly and automatically on a failure. I know there is a quiet switch and a batch switch in ghost itself but it appears there isn't one for ghost explorer.
Any help on this would be greatly appreciated as I have spent most of the day trying to come up with a work round.
Thank you