N
N
Nikita Ivanov2015-10-21 16:55:55
cmd/bat
Nikita Ivanov, 2015-10-21 16:55:55

Does cmd.exe have a bash equivalent of mkdir dir_name/{css,js} -p?

The mkdir dir_name/{css,js} -p command creates such a directory tree
dir_name -css
-js
In git-bash it works fine, but in the windows shell it complains about a syntax error. Is there an equivalent to make a BAT file and run it with the mouse instead of creating each directory and project file by hand?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2015-10-21
@yellowmew

mkdir 123\456 123\321

I
Ivanq, 2015-10-21
@Ivanq

I didn't quite understand your question, sorry.
I posted the bat code here: https://yadi.sk/d/OnP-mkE1ju8uE
Change it to mkd.bat and put it in path
Use this:
1. mkd some_name
Create a folder some_name in the current directory
2. mkd some_name/folder
Create a folder some_name in the current directory and folder folder in the created some_name
3. Create mkd some_name/{a,b,c}
a folder some_name in the current directory and folders a, b, c in the created some_name
If you need more functionality, I will help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question