Hi Jaime,
Thank you for your help. But it seems the API_APPRUN class can have bigger capability. So, I prefer to use it in future.
:) Wilfred
>Try the short (DOS) name of the directory, something like:
>run "\prj\testin~1\test.bat"
>
>Jaime
>
>>I tried. It seems it doesn't accept long path name.
>>e.g. run "\prj\testing long path\test.bat"
>>
>>Thanks, Wilfred
>>
>>>Why don't you use the RUN command?
>>>
>>>>Dear all,
>>>>
>>>>I'm trying to run an external batch file with the following code
>>>>
>>>>nRet = shellexecute(FindWindow( 0, _SCREEN.CAPTION),"open",{Batch file},"","",1)
>>>>
>>>>But it failed in some workstations (NT 4.0).
>>>>Any ideas? Or alternatives?
>>>>
>>>>Thank you, Wilfred