Friday, April 26, 2019

NAV CAL - Get a list of filenames from a windows directory

https://juhl.blog/2017/07/05/get-filelist-using-net/



  • Create variables
    • FileMgt = C419
    • FileList = T823
  • FileMgt.GetServerDirectoryFilesList(Filelist,'C:\MyFolder');
  • This populates the 823 with all filenames in that directory
  • Cycle through 823 to deal with each record/file
823 structure

ID Name Value
1 C:\AS2\IMPORT\106041-20190121.xml 106041-20190121

No comments:

Post a Comment