General discussion

Locked

Create a folder

By BlazNT ·
I need to create a folder in a batch file that is alway unique. Any ideas on how. I tried md and %MM%%DD%%YY% no luck. I tried md %date% no luck. I know Im just missing something simple but not sure what it is.

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by mikex In reply to Create a folder

Which one is unique the batch file or the folder?

Collapse -

by BlazNT In reply to Create a folder

I need the Folder to be unique. Sorry if it did not make since before.

Collapse -

by mikex In reply to Create a folder

Here's one example did you try it? I'm sure that you can make it shorter:

http://216.239.39.104/search?q=cache:UnP2UVCvgScJ:www.ftpplanet.com/ubb/Forum5/HTML/000443.html+creating+a+unique+folder+names+with+a+script&hl=bg

Collapse -

by BlazNT In reply to Create a folder

I found the answer :)
md "%DATE:/=_%"
It creates a folder that looks like
Sun 08_29_2004

Back to Windows Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums