Parent folder path of ActiveDesignFile.

Is there some way to get the path to the parent folder. I attempted something like ActiveDesignFile.ParentFolder, but that does not work. 

If an active design file is located in a folder:
C:\Projects\12345\Resource\test.dgn  

And I would like to attach a file referece from:
C:\Projects\12345\Survey\    is there some way to jump up one to parent folder.  .\ 

Path = .\Surey\  ??

Example in MSVBA Help
sFullFileName = ActiveDesignFile.Path & "\" & "Test.dgn"

Parents
  • Unknown said:
    Is there some way to get the path to the parent folder. I attempted something like ActiveDesignFile.ParentFolder

    Use Microsoft's freeware Scripting Runtime library, which supplies the File System Object (FSO).  It's probably already installed on your computer.  All you have to do is reference it in your VBA project.

    The FSO provides the File and Folder objects.  They provide what you need.  There are plenty of examples of the FSO on the web.

     
    Regards, Jon Summers
    LA Solutions

Reply
  • Unknown said:
    Is there some way to get the path to the parent folder. I attempted something like ActiveDesignFile.ParentFolder

    Use Microsoft's freeware Scripting Runtime library, which supplies the File System Object (FSO).  It's probably already installed on your computer.  All you have to do is reference it in your VBA project.

    The FSO provides the File and Folder objects.  They provide what you need.  There are plenty of examples of the FSO on the web.

     
    Regards, Jon Summers
    LA Solutions

Children