minor fix for long working directory.

This commit is contained in:
Shital Savekar 2017-12-26 16:46:13 -08:00
Родитель 92accd1802
Коммит 6017441140
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -39,7 +39,7 @@ if ( $pwd.Path.Length -gt 64)
New-Item -ItemType Directory -Path "$currentDrive\AzureTests" -Force -ErrorAction SilentlyContinue | Out-Null New-Item -ItemType Directory -Path "$currentDrive\AzureTests" -Force -ErrorAction SilentlyContinue | Out-Null
New-Item -ItemType Directory -Path "$currentDrive\AzureTests\$randomNumber" -Force -ErrorAction SilentlyContinue | Out-Null New-Item -ItemType Directory -Path "$currentDrive\AzureTests\$randomNumber" -Force -ErrorAction SilentlyContinue | Out-Null
$finalWorkingDirectory = "$currentDrive\AzureTests\$randomNumber" $finalWorkingDirectory = "$currentDrive\AzureTests\$randomNumber"
Copy-Item -Path "*" -Destination $finalWorkingDirectory -Recurse | Out-Null Copy-Item -Path ('\\?\' + "*") -Destination $finalWorkingDirectory -Recurse | Out-Null
Set-Location -Path $finalWorkingDirectory | Out-Null Set-Location -Path $finalWorkingDirectory | Out-Null
Write-Host "Wroking directory changed to $finalWorkingDirectory" Write-Host "Wroking directory changed to $finalWorkingDirectory"
} }