Question
CFExecute with error return
:confused;
Hi,
Earlier CF4.5 uses CFX_SpawnExec (dll) which launches the VB exe but not working with CF8.0
Installed CF8.0 in local machine and CFExecute successfully launched VB exe in synchronous, but it doesn't have any error return whether the execution is successful or unsuccessful.
Working Code (without error return)
<cfexecute name = "C:\ICS\Dll\Icsol.exe"
arguments = "-inf 99068614"
outputFile = ""
timeout = "60">
</cfexecute>
After some more search found CFExecute has one more argument errorVariable which returns if any error occurs,
but its working with a simple batch file but not while launching the VB exe.
Working
<cfexecute name = "C:\ICS\TestInforce.bat"
arguments = ""
errorVariable = "errVar"
timeout = "60"
variable="exResult">
</cfexecute>
Not working for VB exe
<cfexecute name = "C:\ICS\Dll\Icsol.exe"
arguments = "-inf 99068614"
errorVariable = "errVar"
timeout = "60"
variable="exResult">
</cfexecute>
Could someone suggest to use CFExecute with an errorVariable parameter to execute a VB exe.
thanks,
Hi,
Earlier CF4.5 uses CFX_SpawnExec (dll) which launches the VB exe but not working with CF8.0
Installed CF8.0 in local machine and CFExecute successfully launched VB exe in synchronous, but it doesn't have any error return whether the execution is successful or unsuccessful.
Working Code (without error return)
<cfexecute name = "C:\ICS\Dll\Icsol.exe"
arguments = "-inf 99068614"
outputFile = ""
timeout = "60">
</cfexecute>
After some more search found CFExecute has one more argument errorVariable which returns if any error occurs,
but its working with a simple batch file but not while launching the VB exe.
Working
<cfexecute name = "C:\ICS\TestInforce.bat"
arguments = ""
errorVariable = "errVar"
timeout = "60"
variable="exResult">
</cfexecute>
Not working for VB exe
<cfexecute name = "C:\ICS\Dll\Icsol.exe"
arguments = "-inf 99068614"
errorVariable = "errVar"
timeout = "60"
variable="exResult">
</cfexecute>
Could someone suggest to use CFExecute with an errorVariable parameter to execute a VB exe.
thanks,
