Thanks. You helped me a lot. I was thinking about it a little bit and I thought of that. But yours is easier.
' define path where environments are created
Dim mainPath As String = ThisDoc.Path
' ask the name of for a folder name
Dim result As String = "Data CNC"
' definf sube folder name
Dim subFolder As String = "MDV"
Dim subFolder1 As String = "plechy"
Dim subFolder2 As String = "plasty"
' cretae strings with the paths to create, vytvoří řetězce s cestami k vytvoření
Dim environmentPath As String = IO.Path.Combine(mainPath, result)
Dim subPath As String = IO.Path.Combine(environmentPath, subFolder)
Dim subPath1 As String = IO.Path.Combine(environmentPath, subFolder1)
Dim subPath2 As String = IO.Path.Combine(environmentPath, subFolder2)
' create the paths on drive, vytvořtí cesty na jednotce
IO.Directory.CreateDirectory(environmentPath)
IO.Directory.CreateDirectory(subPath)
IO.Directory.CreateDirectory(subPath1)
IO.Directory.CreateDirectory(subPath2)
' open the main folder, otevře hlavní složku
Process.Start(environmentPath)