Re: RUN command fails



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@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le message de news:
> 716AB60C-FD4A-450A-B22D-5EB82A4638BC@xxxxxxxxxxxxxxxx
> > 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
>
>
>
.



Relevant Pages

  • Re: ShellExecute
    ... The redirection operators, are part of the command ... Althought this API function is called "shellexecute" I doubt ... it's sending the command to the CLI; rather, ...
    (borland.public.delphi.nativeapi)
  • Re: send email with shellexecute but crlf in body does not work
    ... like opening up a DOS window and typing a command. ... > I try to send an email with shellexecute in FVP8 on Win2k with Outlook ... > Unfortunately the body text will not show my crlf. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: autorun.inf
    ... shellexecute e.. ... Remarks ... The open command specifies the path and file name of the application that AutoRun launches when a user inserts a disc in the drive. ... verb The verb that corresponds to the command. ...
    (microsoft.public.windowsxp.general)
  • Re: remove non empty direcory
    ... ShellExecute will execute any command you can pass to the Start/Run... ... You'd test whether a directory exists by calling CreateDirectory and ...
    (microsoft.public.vc.language)
  • Re: ShellExecute and copy, delete command
    ... The COPY command is internal to the Command Prompt, ... > ShellExecute to do the file manipulation job? ... Tim Robinson (MVP, Windows SDK) ...
    (microsoft.public.vc.language)