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 »

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: 2984
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut »

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 »

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