Hi All,

The follwing flash executes successfully from the command window, but gives
an error when tried through vfp8

tmp = "RUN /N3 " + filepath + "Demo\Demo.swf"
&tmp

Error message:
RUN|! command failed. An attempt was made to load a program with an
incorrect format.

Any help would be greatly appreciated.
Thanks.
kd

Re: RUN command fails by Thierry

Thierry
Tue May 10 08:41:22 CDT 2005

hi,

tmp = "RUN /N2 cmd /c start " + filepath + "Demo\Demo.swf"

But you should use the ShellExecute API function.

DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
INTEGER nWinHandle,STRING cOperation,STRING cFileName,;
STRING cParameters,STRING cDirectory,INTEGER nShowWindow

ShellExecute(0,"open",filepath + "Demo\Demo.swf",3)

--
Thierry


"kd" <kd@discussions.microsoft.com> a écrit dans le message de news:
716AB60C-FD4A-450A-B22D-5EB82A4638BC@microsoft.com...
> Hi All,
>
> The follwing flash executes successfully from the command window, but
> gives
> an error when tried through vfp8
>
> tmp = "RUN /N3 " + filepath + "Demo\Demo.swf"
> &tmp
>
> Error message:
> RUN|! command failed. An attempt was made to load a program with an
> incorrect format.
>
> Any help would be greatly appreciated.
> Thanks.
> kd



Re: RUN command fails by kd

kd
Wed May 11 05:28:04 CDT 2005

Thanks a lot Thierry. That was a great help.

Regards,
kd

"Thierry" wrote:

> hi,
>
> tmp = "RUN /N2 cmd /c start " + filepath + "Demo\Demo.swf"
>
> But you should use the ShellExecute API function.
>
> DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
> INTEGER nWinHandle,STRING cOperation,STRING cFileName,;
> STRING cParameters,STRING cDirectory,INTEGER nShowWindow
>
> ShellExecute(0,"open",filepath + "Demo\Demo.swf",3)
>
> --
> Thierry
>
>
> "kd" <kd@discussions.microsoft.com> a écrit dans le message de news:
> 716AB60C-FD4A-450A-B22D-5EB82A4638BC@microsoft.com...
> > Hi All,
> >
> > The follwing flash executes successfully from the command window, but
> > gives
> > an error when tried through vfp8
> >
> > tmp = "RUN /N3 " + filepath + "Demo\Demo.swf"
> > &tmp
> >
> > Error message:
> > RUN|! command failed. An attempt was made to load a program with an
> > incorrect format.
> >
> > Any help would be greatly appreciated.
> > Thanks.
> > kd
>
>
>

Re: RUN command fails by kd

kd
Wed May 11 05:34:03 CDT 2005

Hi Thierry,

The RUN command is working fine.

But, I think the ShellExecute command is expecting the argument value for
STRING cParameters

What value needs to tbe passed for this argument?

Thanks.
kd

"Thierry" wrote:

> hi,
>
> tmp = "RUN /N2 cmd /c start " + filepath + "Demo\Demo.swf"
>
> But you should use the ShellExecute API function.
>
> DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
> INTEGER nWinHandle,STRING cOperation,STRING cFileName,;
> STRING cParameters,STRING cDirectory,INTEGER nShowWindow
>
> ShellExecute(0,"open",filepath + "Demo\Demo.swf",3)
>
> --
> Thierry
>
>
> "kd" <kd@discussions.microsoft.com> a écrit dans le message de news:
> 716AB60C-FD4A-450A-B22D-5EB82A4638BC@microsoft.com...
> > Hi All,
> >
> > The follwing flash executes successfully from the command window, but
> > gives
> > an error when tried through vfp8
> >
> > tmp = "RUN /N3 " + filepath + "Demo\Demo.swf"
> > &tmp
> >
> > Error message:
> > RUN|! command failed. An attempt was made to load a program with an
> > incorrect format.
> >
> > Any help would be greatly appreciated.
> > Thanks.
> > kd
>
>
>

Re: RUN command fails by Thierry

Thierry
Wed May 11 05:45:56 CDT 2005

Sorry,

ShellExecute(0,"open",filepath + "Demo\Demo.swf","","",3)

--
Thierry


"kd" <kd@discussions.microsoft.com> a écrit dans le message de news:
60B85B78-27CF-47A4-BAE0-901A5E81EA6C@microsoft.com...
> Hi Thierry,
>
> The RUN command is working fine.
>
> But, I think the ShellExecute command is expecting the argument value for
> STRING cParameters
>
> What value needs to tbe passed for this argument?
>
> Thanks.
> kd
>
> "Thierry" wrote:
>
>> hi,
>>
>> tmp = "RUN /N2 cmd /c start " + filepath + "Demo\Demo.swf"
>>
>> But you should use the ShellExecute API function.
>>
>> DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
>> INTEGER nWinHandle,STRING cOperation,STRING cFileName,;
>> STRING cParameters,STRING cDirectory,INTEGER nShowWindow
>>
>> ShellExecute(0,"open",filepath + "Demo\Demo.swf",3)
>>
>> --
>> Thierry
>>
>>
>> "kd" <kd@discussions.microsoft.com> a écrit dans le message de news:
>> 716AB60C-FD4A-450A-B22D-5EB82A4638BC@microsoft.com...
>> > Hi All,
>> >
>> > The follwing flash executes successfully from the command window, but
>> > gives
>> > an error when tried through vfp8
>> >
>> > tmp = "RUN /N3 " + filepath + "Demo\Demo.swf"
>> > &tmp
>> >
>> > Error message:
>> > RUN|! command failed. An attempt was made to load a program with an
>> > incorrect format.
>> >
>> > Any help would be greatly appreciated.
>> > Thanks.
>> > kd
>>
>>
>>