Copying Files
by Nick Matthews · in Torque Game Engine · 07/04/2007 (3:26 pm) · 2 replies
Basically what I need to be able to do is copy one file from a directory, to another directory, for example:
copyFile("base/data/shapes/horse.dts","base/backup/horse.dts");
or something. I've tried searching and the closest i found was an FTP Type system which didnt quite illustrate how I might do it. Thanks!
copyFile("base/data/shapes/horse.dts","base/backup/horse.dts");
or something. I've tried searching and the closest i found was an FTP Type system which didnt quite illustrate how I might do it. Thanks!
#2
07/04/2007 (4:49 pm)
I don't remember for sure off the top of my head, but you may need to manually create your new directory first, so if it doesn't work first attempt, try creating the dir first in windows explorer, and then try the pathcopy.
Community Manager Michael Perry
ZombieShortbus
pathCopy("base/data/shapes/horse.dts", "base/backup/horse.dts");Give that a shot amigo.