From: Anonymous on
I want to create a new directory which has partly the same name as the current directory.

e.g.
Current direcory = D:\Simulation\Data\Run 1\

I want to create a new folder:
D:\Back up\Results\Data\Run 1\

As you can see, the last two folders have the same names, but the first (two) are different.
I tried with regexp and fileparts, but it didn't work... Anyone who did this before or who knows how to fix it?

Tnx a lot!!
From: Branko on
"@ddie ertser" <ivogrunn(a)hotmail.com> wrote in message <hpiiek$3a7$1(a)fred.mathworks.com>...
> I want to create a new directory which has partly the same name as the current directory.
>
> e.g.
> Current direcory = D:\Simulation\Data\Run 1\
>
> I want to create a new folder:
> D:\Back up\Results\Data\Run 1\
>
> As you can see, the last two folders have the same names, but the first (two) are different.
> I tried with regexp and fileparts, but it didn't work... Anyone who did this before or who knows how to fix it?
>
> Tnx a lot!!

doc mkdir

Branko