How to get directory contents ?

AleksasAleksas Member Posts: 9
edited 2004-01-06 in Navision Attain
Hi,

recently I've discovered a problem and I don't know how could I solve it.
Customer saves his files in one directory, and I need to know how many files are in that directory, and what are the names of those files. I don't know what could I use.. Maybe somebody worked on that problem already, and could help me?

thanx in advance

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Have a look at this thread: http://www.mibuso.com/forum/viewtopic.php?t=1672

    You use the virtual table Files for that.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • DoomhammerDoomhammer Member Posts: 211
    I worked on this problem when I needed to import contents of directory into navision. directory contained number of text files - invoices, one invoice = one file.

    first I created text file using "DIR path >file" command, then I read this created file and I get contents of directory.

    I am writing this post, because I do not understand using FILE table in Navision :-) and because this is an alternative to FILE table :-)
    Martin Bokůvka, AxiomProvis
  • WaldoWaldo Member Posts: 3,412
    Doomhammer,

    de file-table is really useful.

    May be try this posting:
    http://www.mibuso.com/forum/viewtopic.php?t=1633&highlight=recfile

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • AleksasAleksas Member Posts: 9
    Thank you guys! It was really helpfull!
  • DoomhammerDoomhammer Member Posts: 211
    Ha.

    I looked at system table FILE and with using hints typed in this thread, I finally discovered how it really works :-). Strange thing with filter at PATH field. I thought, that this table without filters should show all drive contents. Is somewhere some official description of FILE table (and of all system and virtual tables)?

    Folks, thanks for this hint. Maybe it should be in HOWTO's ;-)
    Martin Bokůvka, AxiomProvis
Sign In or Register to comment.