bash - create multiple subdirectory using mkdir in powershell -


is there way can in ms powershell? (w/o scripting)

mkdir a\b\c\d{a,b,c,d} 

i want make multiple subdirectories @ once in bash when run in powershell gives me error :

at line:1 char:17
+ mkdir a\b\c\d{a,b,c,d}
+ ~
missing argument in parameter list.
+ categoryinfo : parsererror: (:) [], parentcontainserrorrecordexception + fullyqualifiederrorid : missingargument**

i had tried of following:

mkdir a\b\c\d\{a b c d} mkdir a\b\c\d\a,b,c,d} mkdir a\b\c\d\[a,b,c,d] 

try this:

"a","b","c","d" | % { mkdir "a\b\c\d\$_" } 

or

echo a,b,c,d | % { mkdir "a\b\c\d\$_" } 

see: powershell equivalent of bash brace expansion generating lists/arrays


Comments