View Full Version : File.Copy
bobohearn
03-19-2004, 06:39 PM
I am having difficulty understanding how to copy a file ( a simple flash projector) from my project cd to the user's desktop. I can't get the path right. Do I need to create a folder first? Any help would be greatly appreciated.
TJ_Tigger
03-19-2004, 07:26 PM
Chen you copy you can copy to the buildin variable _DesktopFolder (http://www.indigorose.com/webhelp/ams50/Program_Reference/Variables/Global_Variables.htm).
File.Copy("AutoPlay\\Docs\\file.txt", _DesktopFolder .. "file.txt", false);
bobohearn
03-20-2004, 04:00 AM
Excellent! Thanks so much!
TJ_Tigger
03-20-2004, 01:59 PM
np :D
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.