I need to create 2 new directories of of which are acctual sub directories of a Sub directory that already exist.

MAIN App.Path
--------|
--------|--sub---->210
-----------------------|
-----------------------|--sub--->strYear Dir
----------------------------------------|
----------------------------------------|--sub-------->strMonth Dir

The last 2 Dir's above directories as explaind in the code below would be created within this directory "210"



VB Code:
  1. Dim Confirm As String
  2. Dim strYear As String
  3. Dim strMOnth As String
  4.  
  5.  strYear = Format(DTP.Value, "yyyy")
  6.  strMonth = FOrmat(DTP.Value, "MMMM")
  7.  
  8. 'Psuedo Code -as I am not sure here what to do but something like this
  9. ' Check if a Dir exist in a Dir named 210 in Main App.Path
  10.  
  11. If Dir does Not Exist Then
  12.  
  13.   Confirm = MsgBox("Do you want to create Dir for " & strYear & "?", vbQuestion + vbYesNo)
  14.    If Confirm = vbYes Then
  15.     MkDir-> strYear ' strYear Dir is a sub Dir of a Sub Dir residing in the Main App.Path as shown on next line
  16.     ' Main App. Path
  17.         '210 <---This is the DIrectory the strYear directory will be created in
  18.         MakeSubDir-> strMonth ' This is Sub Dir to strYear Dir
  19.      Else
  20.      Exit Sub
  21.     End If
  22. ElseIf Dir does Exist Then
  23.  
  24.   'Check to see if  strMonth Dir exist in strYear dir if not then create it
  25.   If strMonth Dir does Not Exist Then
  26.    
  27.    Confirm = MsgBox(" wanna Make it blah blah", vbQuestion + vbYesNo)
  28.     If COnfirm = vbYes Then
  29.  
  30.       MkDIr strMonth ' This is Sub of strYear Dir just created
  31.      Else
  32.       Exit Sub
  33.     End If
  34.  
  35. ' If all is there or created then I will save files to strMonth Dir
Help appreciated very much
vbMarkO