Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

powershell create folder recursively

# Poweshell: Get the root drive letter, and move into it
$FILE_PARTS = $DESTINATION_DIR.split(":")
Set-Location "${FILE_PARTS[0]}"

# Recursively create subfolders
New-Item -Name $FILE_PARTS[1].Substring(1) -ItemType directory
Source by social.technet.microsoft.com #
 
PREVIOUS NEXT
Tagged: #powershell #create #folder #recursively
ADD COMMENT
Topic
Name
1+8 =