vb Code:
  1. Dim szTmpPath As String = System.IO.Path.Combine(Application.StartupPath, "Log")
  2.  
  3. Dim dirInfo As New System.IO.DirectoryInfo(szTmpPath)
  4.  
  5. '   if folder not exist, create
  6. If Not dirInfo.Exists Then dirInfo.Create()