I need a Powershell script which helps me to create a folder on destination with one previous date.
Currently, I am using the code below. It helps me to create a folder on destination place with current date but I need folder with previous date.
$destination = "C:\abc"
Testing if the path Exist or not
md $destination -ErrorAction:SilentlyContinue
Create a Test folder in destination path (name will be same as Zip file)
$folder = $destination + "\" + (get-date -Format yyyyMMdd) + "." $folderName = (get-date -Format yyyyMMdd) + "." md $folder