file.copy ("C:\\Program Files\\Frontier\\cactus.gif", "C:\\Program Files\\Frontier\\Copy of cactus.gif")
» true
file.copy ("C:\\Program Files\\Frontier\\cactus.gif", "D:\\")
» true
The file "cactus.gif" is copied to "D:\\cactus.gif"
file.copy ("System:ResEdit 2.1b3", "XP150:ResEdit")
» true
The file "ResEdit 2.1b3" is copied to the volume "XP150" as "ResEdit".
file.copy ("System:ResEdit 2.1b3", "XP150:")
» true
The file "ResEdit 2.1b3" is copied to the volume "XP150" retaining its original name.
file.copy ("System:Utilities:", "XP150:Tools:")
» true
If the folder "Tools" doesn't exist, it is created. The contents of "Utilities" are then copied into "Tools".