I've done a few searches on this, but I can't find a solution. My problem is this, I have a string that is a path of folders. If the penultimate folder or all the folders exist, there is no problem. What I am looking for is a simple piece of code that will produce the necessary folders from a given path.
The above works fine if:
C:\Documents and Settings\MyName\My Documents\2004\
exists, but not if the 2004 folder doesn't exist.
Hope you can help. Many thanks.
Code:
MkDir "C:\Documents and Settings\MyName\My Documents\2004\01\"
The above works fine if:
C:\Documents and Settings\MyName\My Documents\2004\
exists, but not if the 2004 folder doesn't exist.
Hope you can help. Many thanks.