Home » Developer & Programmer » Forms » how to open command prompt
how to open command prompt [message #114794] Tue, 05 April 2005 12:28 Go to next message
aditya_gangadharam
Messages: 43
Registered: February 2005
Location: Hyderabad
Member

hi all,
i want to send some data to a file having the extention txt(i.e., FileName.Txt) and that file should be opened at the command prompt in edit mode. So, How can i open a command prompt from the forms 9i on the button press. Is this Possible in 9i.

thanks for help...

aditya gangadharam...
Re: how to open command prompt [message #114855 is a reply to message #114794] Tue, 05 April 2005 19:31 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Try the webutil pll [etc] that is available on the OTN website. (This is the 9i/10g version of the d2kwutil pll.)
Re: how to open command prompt [message #114873 is a reply to message #114794] Wed, 06 April 2005 00:22 Go to previous messageGo to next message
Muzammil_husain
Messages: 8
Registered: March 2005
Location: New Delhi
Junior Member


Hi,

If you want to open any file on command prompt, store that

command in a variable and pass it in host command.

example

declare

x varchar2(50);
begin
x := 'edit abc.txt';

Host(x);
end;

i think it will help

Muzammil Husain
Re: how to open command prompt [message #114877 is a reply to message #114794] Wed, 06 April 2005 00:59 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Have a look at http://www.oracle.com/technology/products/forms/htdocs/webutil/WebUtilFAQ.htm and do a 'find' for 'host'. You will see that in the three tier arena there are both 'host' and 'client_host' commands. The prior works on the AS machine, the latter on the client machine.
Re: how to open command prompt [message #115195 is a reply to message #114855] Fri, 08 April 2005 02:03 Go to previous messageGo to next message
aditya_gangadharam
Messages: 43
Registered: February 2005
Location: Hyderabad
Member

hi hussain,

the code u gave me helped a lot but the edit window is closed immediately after the host(x)

how to keep it visible until i close it manually.

thanks for help..

adi..
Re: how to open command prompt [message #115199 is a reply to message #114794] Fri, 08 April 2005 02:10 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Try using 'cmd' with the '/K' option.
Re: how to open command prompt [message #115208 is a reply to message #115195] Fri, 08 April 2005 02:59 Go to previous message
Muzammil_husain
Messages: 8
Registered: March 2005
Location: New Delhi
Junior Member

Hi, aditya

edit window will be opened until you will not closed it.

if your window get closed immediately , that may be you DOS setting or Windows setting.

but in my P.C. it does not closed automatically.

please try on other p.c.

bye and take care

Muzammil Husain


Previous Topic: VERY VERY URGENT
Next Topic: Batch increase of canvas properties(height and width)
Goto Forum:
  


Current Time: Thu Sep 19 18:07:22 CDT 2024