running dos program [message #78047] |
Tue, 08 January 2002 02:29 |
Kutlay Pinar
Messages: 4 Registered: January 2002
|
Junior Member |
|
|
i am using oracle forms 6i.
I want to run some .exe programs from dos prompt
by forms.
How can i do it ?
|
|
|
Re: running dos program [message #78050 is a reply to message #78047] |
Tue, 08 January 2002 04:46 |
Srinivas Konda
Messages: 29 Registered: October 2001
|
Junior Member |
|
|
You can use DDE package or host command.
USING DDE :
declare
AppID PLS_INTEGER;
WebBrowser VARCHAR2(100) := 'C:Progra~1Intern~1iexplore.exe';
WebPage VARCHAR2(100) := 'www.abc.com';
BEGIN
AppID := DDE.App_Begin(WebBrowser || ' ' || WebPage, DDE.APP_MODE_minimized);
DDE.App_End(AppID);
EXCEPTION
WHEN DDE.DDE_APP_FAILURE THEN
message('failed to open website');
END;
USING HOST :
host('C:Progra~1Intern~1iexplore.exe');
|
|
|