Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to create a folder \Export in the folder above my current working directory.
How do I manipulate the path in order to go one folder up.
For example: C:\path\Drawings\Inventor
to:
C:\path\Drawings\Export
Dim oPath As String = System.IO.Path.GetDirectoryName(oDoc.FullFileName) Dim oFolder As String = oPath & "\Export" If Not System.IO.Directory.Exists(oFolder) Then System.IO.Directory.CreateDirectory(oFolder) End If
Solved! Go to Solution.