Re: Forms 4.5 -- WINEXEC, in the D2KWUTIL library, Help

From: Valery A. Sorokin <vsorokin_at_dd.ru>
Date: Thu, 12 Nov 1998 15:32:47 +0300
Message-ID: <364AD56F.F6511112_at_dd.ru>


Try something like this:

  s_Cmd VARCHAR2(2000);
  ...
  s_Cmd := 'C:\WINDOWS\COMMAND.COM';
  BEGIN
    WIN_API_SHELL.WINEXEC(s_Cmd, 0, TRUE);   EXCEPTION
    WHEN OTHERS THEN
      msg_alert('Error: Cannot run '||s_Cmd,'W',null);   END;
  ...

I hope this will help you.

Mark Coffin wrote:
>
> I'm having trouble trying to get WINEXEC to work in the D2KWUTIL
> library, I've attached the library and added a when-button-pressed
> trigger to a button with the following code,
>
> WIN_API_SHELL('C:\WINDOWS\COMMAND.COM', 0, TRUE);
>
> This should launch a DOS prompt, I've tried launching over programs,
> and tried using other parameters. Does any one having any examples,
> they can post. Thanks.

-- 
Valery A. Sorokin
ProSoft, Russia, Moscow, Information Systems Division
Phone: +7 (095) 234 0636 (6 lines) FAX: +7 (095) 234 0640
E-mail: vsorokin_at_dd.ru OR vsorokin_at_prosoftmpc.msk.su
http://www.dd.ru
Received on Thu Nov 12 1998 - 13:32:47 CET

Original text of this message