Home » Developer & Programmer » Forms » WIN_API_UTILITY.copy_file (forms 6i)
WIN_API_UTILITY.copy_file [message #346610] Tue, 09 September 2008 02:25 Go to next message
baba_jee
Messages: 11
Registered: September 2008
Junior Member
Dear Friends,
i want to copy files from one location to antoher in forms6i on when button pressed.i m using the following code.

DECLARE
cpf_source VARCHAR2(500) := 'c:\test.txt';
cpf_target VARCHAR2(500) := 'c:\data';
begin
WIN_API_UTILITY.copy_file(cpf_source,cpf_target,TRUE);
end;

But i press the button it generates FRM-40734, internal Error : PL/SQL error occured.

please suggest some solution . .

Thanks in advance.
Re: WIN_API_UTILITY.copy_file [message #346614 is a reply to message #346610] Tue, 09 September 2008 02:36 Go to previous messageGo to next message
baba_jee
Messages: 11
Registered: September 2008
Junior Member
i would like to add tha WAPIDEMO.FMB is working fine with me. and i want to copy fmb and rdf files from one location to other using WIN_API_UTILITY.copy_file . .
Re: WIN_API_UTILITY.copy_file [message #346920 is a reply to message #346614] Wed, 10 September 2008 01:46 Go to previous messageGo to next message
mudabbir
Messages: 235
Registered: April 2006
Location: Kuwait
Senior Member

/*-------------------------------------------------------------------------*\
Copy_File -> Copies the specified file
Arguments:
OldFileName -> The location and name of the file to Copy
NewFileName -> The new location and name for the copy of the file
AllowOverWrite -> TRUE or FALSE(Default) If FALSE, then if the NewFileName
already exists then the move will fail. If TRUE the existing
file will just be overwritten.
RaiseExceptions -> TRUE or FALSE(Default) If set to true, then if the
command is not successful (e.g the file does
not exist) then the explicit exception
NO_DATA_FOUND will be raised.
Returns:
(NONE)
\*-------------------------------------------------------------------------*/

PROCEDURE Copy_File (  OldFileName      IN  VARCHAR2,
                      NewFileName      IN  VARCHAR2,
                      AllowOverWrite  IN  BOOLEAN DEFAULT FALSE,
                      RaiseExceptions IN   BOOLEAN DEFAULT FALSE);



Quote:
DECLARE
cpf_source VARCHAR2(500) := 'c:\test.txt';
cpf_target VARCHAR2(500) := 'c:\data';
begin
WIN_API_UTILITY.copy_file(cpf_source,cpf_target,TRUE);
end;



Do you know whats happening here?

[Updated on: Wed, 10 September 2008 01:48]

Report message to a moderator

Re: WIN_API_UTILITY.copy_file [message #346949 is a reply to message #346920] Wed, 10 September 2008 03:10 Go to previous messageGo to next message
baba_jee
Messages: 11
Registered: September 2008
Junior Member
Ohh, I got it now . . . Razz

Thanks a lot Mudabbir for your help . . .
Re: WIN_API_UTILITY.copy_file [message #593805 is a reply to message #346949] Wed, 21 August 2013 03:42 Go to previous messageGo to next message
1983jignesh
Messages: 8
Registered: February 2010
Location: Oman
Junior Member

Can you please let me know solution as i m getting the same error message.....
Re: WIN_API_UTILITY.copy_file [message #593901 is a reply to message #593805] Wed, 21 August 2013 14:52 Go to previous message
Littlefoot
Messages: 21807
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
It might help if you posted code that raised the error.

Did you read mudabbir's message?
Previous Topic: How to downgrade Form(FMB) created/modified in Forms 10g to Oracle Forms 9
Next Topic: oracle 6i with window 7
Goto Forum:
  


Current Time: Fri Apr 19 20:46:51 CDT 2024