Answer the question
In order to leave comments, you need to log in
How to create a folder with files with a specific name in powershell?
Hello!
How to create a folder with files with a specific name in powershell?
For example, the name test. A folder with files will be created:
-test
--_test.sass
--test.pug
Answer the question
In order to leave comments, you need to log in
function create_component_directory([System.String] $name) {
New-Item -ItemType directory $name
$sass = "$name/_$name.sass"
$pug = "$name/$name.pug"
".$name" >> $sass
"section.$name" >> $pug
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question