This content has been marked as final. Show 7 replies
You'll need to use an xtra. There's a collection of 'file' related xtras here:
Many of which can do file copying. Each will have its own documentation as to how to use the functions within the xtra.
hope this helps!
Hi duckets !
thanks for yor answer but i wanted to move the jpeg,gif files .I wanted to know if Director doesnt have inbuilt methods by which i can achive my goal.
You will need to use an xtra to copy files or do most any Operating
System-level things. I would recommend BuddyAPI, since it is easy to
use, and if you only use 1 or 2 commands, it is free. There are others
(some of which are totally free). That link that duckets gave you will
present you with a fairly comprehensive list of them along with their
Mike Blaustein wrote:
> You will need to use an xtra to copy files or do most any Operating
> System-level things. I would recommend BuddyAPI, since it is easy to
> use, and if you only use 1 or 2 commands, it is free.
Just going off the topic somewhat, but would Buddy API be able to test if a
file exists? Take the example of this post, you wnat to open a file and
it's supposed to be in the same directory, can you get buddy to confirm teh
file is there before you open it. This would be to ensure that if the file
is not there, you don't get an error message.
Absolutely. Buddy has a function to see if a file exists. It is called
You could also use the downloadnetthing command to copy files to and fro.
Though there's enough xtras as mentioned that have more file handling
functionality than Lingo has.
> I am opening a file using the openFile command in director but what i need is
> to open the file as well as copy the same file to a local drive.Can it be done
> in director and can i get code snippet for the same.Is there any comand in
> director for cpying a file from one location to other.If i only provide a path
> of the file then i need to copy the file to desired location.