Dinakar Nethi

A .NET/SQL Server Blog

<January 2009>
SuMoTuWeThFrSa
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567


Navigation

About Me

Links

Subscriptions

Article Categories



VB.NET code to create a new folder

Function CreateNewFolder(ByVal Path, ByVal NewFolderName)

Dim objFSO

objFSO = CreateObject("Scripting.FileSystemObject")

Dim FullPath

FullPath = Path & NewFolderName

If Not objFSO.FolderExists(FullPath) Then

objFSO.CreateFolder(FullPath)

CreateNewFolder = True

Else

CreateNewFolder = False

End If

objFSO = Nothing

End Function

posted on Friday, June 11, 2004 2:53 PM by dinakar


# re: VB.NET code to create a new folder @ Tuesday, October 16, 2007 6:33 PM

The technique you are using to see if the folder is allready there does not seem to work for me.

Adam Thompson




Powered by Dot Net Junkies, by Telligent Systems