Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to copy file through javascript

Yong HuangJul 30 2012 — edited Aug 23 2012
APEX 4.1
Cannot create the directory
Cannot execute utl.fopen

need: copy file from local to server. eg: copy d:\cbs.xls to server B:\USERS\.

page -> Javascript -> function & global variable declaration
 <script language="JavaScript" type="text/javascript">
 
function RUN(){
       var   fso   =   new   ActiveXObject( "Scripting.FileSystemObject "); 
var   newpath   =   fso.CopyFile( "d:\\cbs.xls ",   "B:\\USERS\\cbs.xls");      }   
          
</script>
Create a button, button attribute:
onClick="RUN();"
run the page but doesn't work

could anyone help me?
thanks in advance.

Yong.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2012
Added on Jul 30 2012
10 comments
1,061 views