Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RUN /N COMMAND FAILED
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00233105
Message ID:
00233110
Views:
32
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform