View Full Version : File.Copy
bobohearn
03-19-2004, 07: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, 08: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, 05:00 AM
Excellent! Thanks so much!
TJ_Tigger
03-20-2004, 02:59 PM
np :D
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.