السلام عليكم.....
It's ok aiman..i put this fmb as an example on the code to make a sample
folder named final..so you will not put it's default value..as i said before,,
you will send the folder name(which is the id of the record) as an argument when you call the procedure
COPY_SELECTED_FILE(V_FILE_PATH,:TARGET,:id);
then you will put the procedure code as i wrote before :
procedure copy_selected_file(p_file_path varchar2,
p_target varchar2,
p_sub_foder varchar2)
is
Batch_File_Name VARCHAR2(1024) := 'C:\AMMAR.BAT';
File_ID TEXT_IO.FILE_TYPE;
BEGIN
file_name:= GET_FILE_NAME(FILE_FILTER=> 'ALL_FILES (*.*)|*.*|');
FILE_ID := TEXT_IO.FOPEN(BATCH_FILE_NAME,'W');
TEXT_IO.PUT_LINE(FILE_ID,'CD "'||P_TARGET||'" '||CHR(10)||
'MD "'||P_TARGET||'\'||P_SUB_FOLDER||'"'||CHR(10)||
'COPY "'||P_FILE_PATH||'" '||'"'||TARGET||'\'||P_SUB_FOLDER||'" /y');
TEXT_IO.FCLOSE(File_ID);
HOST(Batch_File_Name);
END;
GOOD LUCK :