Both of the above posts mention the MkDir which is the correct function.
Please keep in mind that MkDir can only create one directory at a time, and the parent of that directory must already exists. me2you's example creates the directory off the root of the C: drive which is correct, but if you try:
[tt]
MkDir "C:\sub1\sub2\sub3\sub4\YourDir"
[/tt]
Then the sub1, sub2, sub3, and sub4 directories must already exist. If they don't, then you will have to build the entire directory tree in order before you can make YourDir.
Good Luck
--------------
To get the most from your Tek-Tips experience, please read FAQ181-2886
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein