Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
913 Views, 1 Reply

use ilogic to create a new folder in different path.

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

Labels (1)
WCrihfield
in reply to: Anonymous

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)