>THE COMMAND TO RUN WINDOWS PROGRAM IN WIN3.1 USED TO BE:
>RUN /N c:\excel\excel.exe c:\foxprow\sample\dde\example.xls
>
>*** THE ABOVE WAS TAKEN FROM THE FPW26\SAMPLES\DDE\DDEXCEL.SCX ***
>
>NOW WHEN I ISSUE
>run /N C:\Program Files\Microsoft Office\Office\EXCEL.EXE c:\foxprow\sample\dde\example.xls
>
>IN WIN98 OR WINNT WORKSTATION I RECEIVED A
>
>RUN/! COMMAND FAILED
>
>IF EXCEL IS ALREADY RUNNING THE DDE WORKS FINE. IT JUST WON'T START EXCEL ANYMORE.
>
>THANKS IN ADVANCE
Hi Marcel,
Two possible solutions to the problem. First, would be to use the short path name. The problem, I think, is that FPW 2.6 is a 16 bit app and knows nothing about how to run an executable with a long filename.
The second would be to use the ShellExecute function in Shell.dll. Earlier today, I supplied the code to do this to Denise Duggan. Check the thread titled "Putting info in Excel".
hth,
George
Ubi caritas et amor, deus ibi est