Announcement

Collapse
No announcement yet.

Сopy file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Сopy file

    Hello. How to copy file from one directory A to the directory B? This code does not work.

    Code:
    File.Copy("\\Docs\\A\\README.tx", _SourceFolder .."\\Docs\\B\\README.tx", true, true, false, true, nil);
    Thanks in advance for your reply.

  • #2
    From the documentation: "You can use Application.GetLastError() to determine whether this action failed, and why."
    Most likely, the sub folder(s) don't exist at the target, otherwise the function above will tell you what is wrong.

    Ulrich

    Comment


    • #3
      Excuse me. I forgot to add the "t" in the file name "README.txt". In the extension.

      Comment

      Working...
      X