|
Private Sub cmdFolder_Click() Dim INN As String Dim fso As New FileSystemObject INN = Me.Controls("").Value If fso.FolderExists("Z:\" & INN") Then Shell "explorer Z:\" & INN, vbNormalFocus Else fso.CreateFolder ("Z:\" & INN) Shell "explorer Z:\" & INN, vbNormalFocus End If End Sub
fso.CreateFolder ("Z:\Imhotep\" & INN & " " & FirmaS)
http://www.sql.ru/forum/1197087/proverit-sushhestvovanie-papki-po-nepolnomu-nazvaniu