Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: File.Copy

  1. #1
    Join Date
    May 2003
    Location
    Mass
    Posts
    22

    File.Copy

    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.

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Chen you copy you can copy to the buildin variable _DesktopFolder.

    File.Copy("AutoPlay\\Docs\\file.txt", _DesktopFolder .. "file.txt", false);
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  3. #3
    Join Date
    May 2003
    Location
    Mass
    Posts
    22
    Excellent! Thanks so much!

  4. #4
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    np
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts