Solved

Function for copying files

Posted on 1997-08-05
3
207 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iSeries FTP Exit Program 8 173
ODBC Connection Logging, ADO.NET 6 73
how do i create updater to My Activex application? 3 108
ERP and the other system process verification 5 25
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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.

739 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