Home » Developer & Programmer » Forms » call batch file from Oracle Forms 10g
call batch file from Oracle Forms 10g [message #462607] Fri, 25 June 2010 04:40 Go to next message
Shaheer
Messages: 50
Registered: June 2008
Location: Pakistan
Member
Hi,

I need Help. I want to call .bat file from oracle froms 10g.

I tried given below code but failed.

---------------------------------
declare

v1 varchar2(200);

begin

v1 := 'D:\Folder\Logicalbackup.bat';

HOST('cmd /c start'||v1,no_screen);

--HOST(v1);

end;
-----------------------------

The Logicalbackup.bat file contains:-

Cd d:\oracle\product\10.2.0\db_1\bin
d:
exp mw6/mw6@mw file=d:\mw6\backup\backupRGLHR.dmp log=d:\mw6\backup\backuplog\RGLHR.log


PLEASE HELP ME.... I WANT TO CALL .BAT FILE FROM ORACLE 10G FORMS.
Re: call batch file from Oracle Forms 10g [message #462693 is a reply to message #462607] Fri, 25 June 2010 12:45 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Quote:
I tried given below code but failed.

What does "failed" mean? What happened?

Where is the .BAT file? Is it on a local computer, or on the server? Did you try CLIENT_HOST?
Re: call batch file from Oracle Forms 10g [message #462715 is a reply to message #462693] Sat, 26 June 2010 01:16 Go to previous messageGo to next message
Shaheer
Messages: 50
Registered: June 2008
Location: Pakistan
Member
thanks for reply.

My OS is window XP and i am running my application through Oracle Forms & Report Services (Standalone).

.bat file is on local machine and .bat file not run through form. Please tell me how to use CLIENT_HOST in code.
Re: call batch file from Oracle Forms 10g [message #462739 is a reply to message #462715] Sat, 26 June 2010 05:57 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
You still didn't explain what the failure is about.
Re: call batch file from Oracle Forms 10g [message #465172 is a reply to message #462739] Tue, 13 July 2010 01:46 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Sorry that I have been so long in replying. Have you solved your problem?

Look at 'webutil' for 'client_host'.

David
Previous Topic: Third level block handling in oracle forms 6i
Next Topic: LOV filtering records (merged)
Goto Forum:
  


Current Time: Thu Sep 19 22:39:23 CDT 2024