Solved

Function for copying files

Posted on 1997-08-05
3
215 Views
Last Modified: 2013-12-26
I simply want to copy an aiff file from a local hard disk to
a server. I can't locate a function to do this. Everything I've found is for creating, moving, deleting, etc, but not copying.
0
Comment
Question by:RadNetGML
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
PAD earned 50 total points
ID: 1291624
Toolbox don't have a copy routine.
Severals ways to do that :

simply open source, create destination and read source by block and wrote in dest until EOF then close. Your file is copied !

another way is to use Apple Event to tell the finder to do the copy for you... more complex but let the finder do the job and you'll have a marvellous progressing box indicating the job.
0
 
LVL 1

Expert Comment

by:PAD
ID: 1291625
Oops i forgive somehing very important with the 1st solution :
don't forget to copy the ressource fork AND the data fork (if exist) in order to make a real copy of the file...
0
 

Author Comment

by:RadNetGML
ID: 1291626
I have implemented the Open, Read, Write, Close functionality.
I have to copy more than a block at a time since the files are
large. I like the Apple Event comment, but I'm writing an extension for an app that handles all of the UI. Thanks for the
response.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question