Home » Developer & Programmer » Forms » How To Open Third Party Applications from form6i.  () 1 Vote
How To Open Third Party Applications from form6i. [message #117099] Mon, 25 April 2005 02:14 Go to next message
weekend79
Messages: 198
Registered: April 2005
Location: Islamabad
Senior Member

Please advise codes to open other windows base application from forms 6i.

i.e

Code for Push Button to open windows calculator.
Code for Push Button to open 3rd Party Dictionary.

etc

Wishes
Jawad


Re: How To Open Third Party Applications from form6i. [message #117108 is a reply to message #117099] Mon, 25 April 2005 03:11 Go to previous messageGo to next message
saadatahmad
Messages: 452
Registered: March 2005
Location: Germany/Paderborn
Senior Member

When-Button-Pressed Trigger code:
DECLARE
	cmd VARCHAR2(32);
BEGIN
	cmd := 'C:\WINDOWS\SYSTEM32\calc';
	HOST(cmd);
END;



Define the path as a varchar2 string for the windows application which you want to open. Path for an application depends on your operating system.
Re: How To Open Third Party Applications from form6i. [message #117115 is a reply to message #117099] Mon, 25 April 2005 03:51 Go to previous messageGo to next message
weekend79
Messages: 198
Registered: April 2005
Location: Islamabad
Senior Member

Dear Saadat Ahmad

Thanks for reply but I got the following error from this code.

Trigger raised unhandled exception ORA-06502.

Operation System
Windows 2000 Professional (Service Pack4)

Wishes
Jawad
Re: How To Open Third Party Applications from form6i. [message #117118 is a reply to message #117099] Mon, 25 April 2005 04:23 Go to previous messageGo to next message
saadatahmad
Messages: 452
Registered: March 2005
Location: Germany/Paderborn
Senior Member

I'm using Windows XP Professional.
I checked this code before posting and it's working.

The path for Calculator in Windows 2000 will be different.
Check your path and file name and try again.

Try to open the notepad application.

Regards!
Re: How To Open Third Party Applications from form6i. [message #117122 is a reply to message #117099] Mon, 25 April 2005 05:04 Go to previous messageGo to next message
weekend79
Messages: 198
Registered: April 2005
Location: Islamabad
Senior Member

Dear Saadat Ahmad

Thanks
Calculator is just for example I have tried many applications with there path but this option wont worked for me.

Wishes
Jawad
Re: How To Open Third Party Applications from form6i. [message #117147 is a reply to message #117122] Mon, 25 April 2005 08:01 Go to previous messageGo to next message
fahedakhter
Messages: 39
Registered: March 2005
Location: Pakistan
Member

Please mention .exe in path like 'c:\calc.exe'.It runs and work.
Re: How To Open Third Party Applications from form6i. [message #117255 is a reply to message #117099] Tue, 26 April 2005 02:06 Go to previous message
weekend79
Messages: 198
Registered: April 2005
Location: Islamabad
Senior Member

Dear Saadat Ahmad / fahed Akhter

It worked now. It way my typo mistake.
Thanks for your help.

I pray GOD will give you more knowledge for your self and others.

Wishes
Jawad

Previous Topic: i need help ......
Next Topic: ORA-12203:TNS:unable to connect to destination ERROR
Goto Forum:
  


Current Time: Thu Sep 19 18:17:30 CDT 2024