Skip to content

Instantly share code, notes, and snippets.

@espio999
Last active February 11, 2024 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save espio999/79a4e3df5fef5430f615d16cffc8e315 to your computer and use it in GitHub Desktop.
Save espio999/79a4e3df5fef5430f615d16cffc8e315 to your computer and use it in GitHub Desktop.
make daily working folder under target drive as" Drive:\%y\%m%d\"
$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