Page 1 of 1
Copying files/folders(Code) in Forms 6i
Posted: Tue May 30, 2006 1:59 am
by niaz_1
HI
I want code for copy files/folders from one location to another in Oracle Forms 6i.
ie:
from c:\my_folder
to d:\your_folder
or
form //server/c$/my_folder
to d:\your_folder
Can any body has done so or have any idea.
Muhammad Niaz Qureshi
Oracle Developer
Posted: Tue May 30, 2006 6:23 am
by mirza_rehan
Its very simple
use Host.
for example file located on d:\abc.sql and copy it to c:\
<b>Host ('Copy d:\abc.sql c:\');</b>
use xcopy for coping folder
you can make yours logic for veriable path its also very simple if any problem please reply or mail me at
mirza_rehan@yahoo.com
Best regards,
R E H A N M I R Z A
System Analyst / Senior Oracle Developer
Cell: +92-304-2120807
When ever you pray
Please remember me and my family
Posted: Tue May 30, 2006 7:07 am
by mirza_rehan
Assalam-o-Alaikum
you can also use Win_Api_Utility.Copy_File for coping file
<b>Win_Api_Utility.Copy_File('d:\abc.sql', 'c:\abc.sql');</b>
i think both suggestion will helpful for you
Best regards,
R E H A N M I R Z A
System Analyst / Senior Oracle Developer
Cell: +92-304-2120807
When ever you pray
Please remember me and my family
Posted: Wed May 31, 2006 6:08 am
by niaz_1
Assalam-o-Alaikum
Thanks Mirza Sahib.
I have done it with xcopy command.
Muhammad Niaz Qureshi