WIN_API_UTILITY.copy_file [message #346610] |
Tue, 09 September 2008 02:25 |
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 #346920 is a reply to message #346614] |
Wed, 10 September 2008 01:46 |
|
/*-------------------------------------------------------------------------*\
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
|
|
|
|
|
|