use ilogic to create a new folder in different path.

use ilogic to create a new folder in different path.

Anonymous
Not applicable
1,068 Views
1 Reply
Message 1 of 2

use ilogic to create a new folder in different path.

Anonymous
Not applicable

I am trying use ilogic to create a new folder and move my project in to it. Any ideas will help! Thank you!

0 Likes
Accepted solutions (1)
1,069 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor
Accepted solution

Two methods come to mind for the task of creating a new folder (directory).

Dim oDesiredFolder As String = "C:\Temp\MyNewSubFolder\"
If Not System.IO.Directory.Exists(oDesiredFolder) Then
    System.IO.Directory.CreateDirectory(oDesiredFolder)
End If

and

Dim oDesiredFolder As String = "C:\Temp\MyNewSubFolder\"
If Not FileIO.FileSystem.DirectoryExists(oDesiredFolder) Then
	FileIO.FileSystem.CreateDirectory(oDesiredFolder)
End If

I'm not sure exactly what you mean by 'move my project into it', though.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)