Directory

Mc3762Mc3762 Member Posts: 26
edited 2001-10-31 in Navision Financials
Is it possible from Navision 2.01 to Create directories and remove them on the harddrive.

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You can use the SHELL function to create the dir in DOS.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Mc3762Mc3762 Member Posts: 26
    That works well on some OSVERSIONS, but not under win2000...
  • Toni_LouToni_Lou Member Posts: 11
    Hi

    Did you try with the
    'Microsoft Scripting Runtime'.FileSystemObject Automation Server?

    It has some nice methods to work with the file system...


    Toni
  • Mc3762Mc3762 Member Posts: 26
    Tony - No I Haven't but I sure don't know how to do that?
    Can you explain that a bit.
    Thanks
  • John_TegelaarJohn_Tegelaar Member Posts: 159
    The FileSystemObject (short: FSO) from the MS Scripting Runtime is a convenient and powerfull tool.

    To create a new folder:
    Var:
    Name DataType Subtype Length
    FSO Automation 'Microsoft Scripting Runtime'.FileSystemObject

    Code:
    CREATE(FSO);
    FSO.CreateFolder('c:\temp\new name');

    That's all!

    John
Sign In or Register to comment.