how can i copy a file??

TrintTrint Member Posts: 44
edited 2003-08-27 in Navision Attain
navision needs to copy a .txt file to another \server\folder\
how can i do that?
thanks,
trint

Comments

  • WaldoWaldo Member Posts: 3,412
    May be this code can help you:

    // Move a file to another directory
    COPY(lrecFile.Path + '\' + lrecFile.Name, recSalesSetup."Backup Folder Name" + '\' + lrecFile.Name);
    ERASE(lrecFile.Path + '\' + lrecFile.Name);
    

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • eromeineromein Member Posts: 589
    1.) Goto C/AL code.
    2.) Press F1
    3.) Goto Search Tab
    4.) Search on Copy
    5.) Dubble click on first found item (COPY(File))
    6.) Read help


    To help you a bit more:
    [Ok :=] File.COPY(FromName, ToName)

    Good luck!
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
Sign In or Register to comment.