If somebody like the post and its helpful in your work then, add comments.
Showing posts with label PowerShell. Show all posts
Showing posts with label PowerShell. Show all posts

Monday, April 24, 2017

Windows PowerShell : Create Month folders

To create folder user below script in WINDOWS ISE.

$path ="[Path]\"
$months = "April 2018","May 2018","June 2018","July 2018","August 2018","September 2018","October 2018","November 2018","December 2018","January 2019","February 2019","March 2019"
foreach($month in $months)
{
    New-Item -ItemType Directory -Path "$path$month"
}