Last active
February 11, 2024 11:28
-
-
Save espio999/79a4e3df5fef5430f615d16cffc8e315 to your computer and use it in GitHub Desktop.
make daily working folder under target drive as" Drive:\%y\%m%d\"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$parent_folder = drive = "d:\" + Get-Date -UFormat %y | |
$daily_folder = Get-Date -UFormat %m%d | |
$path = $parent_Frive + $parent_folder + $daily_folder | |
New-Item -Path $path -ItemType Directory -Force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment