Copying files/folders(Code) in Forms 6i

To discuss Oracle Forms & Reports related technical issues.
Post Reply
niaz_1
Posts: 18
Joined: Wed May 17, 2006 9:27 am
Location: Pakistan

Copying files/folders(Code) in Forms 6i

Post 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
mirza_rehan
Posts: 132
Joined: Sun Apr 02, 2006 10:36 am
Location: Pakistan

Post 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
mirza_rehan
Posts: 132
Joined: Sun Apr 02, 2006 10:36 am
Location: Pakistan

Post 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
niaz_1
Posts: 18
Joined: Wed May 17, 2006 9:27 am
Location: Pakistan

Post by niaz_1 »

Assalam-o-Alaikum

Thanks Mirza Sahib.
I have done it with xcopy command.


Muhammad Niaz Qureshi
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests