Copy File to a different folder

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Copy File to a different folder

Post by warrenk » Tue Oct 21, 2008 9:11 pm

What is the best way to copy a file to a new folder. I know how to move a file using the RENAME command...but can't find a COPY file command.

Thanks!
Warren

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Tue Oct 21, 2008 10:31 pm

some of the general library commands that interact with the various x-platform operating systems are prefixed "rev"

Look up revCopyFile - it should do what you need.

(also revCopyFolder may be of interest).

warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Post by warrenk » Wed Oct 22, 2008 2:54 pm

Thanks SparkOut....I overlooked this command when I searched for 'COPY' in the dictionary. This worked perfectly!

Post Reply