From 60174411405c4f70b5253aa82874d0dcc20757d0 Mon Sep 17 00:00:00 2001 From: Shital Savekar Date: Tue, 26 Dec 2017 16:46:13 -0800 Subject: [PATCH] minor fix for long working directory. --- RunAzureTests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RunAzureTests.ps1 b/RunAzureTests.ps1 index fc2df0e..602fb6d 100644 --- a/RunAzureTests.ps1 +++ b/RunAzureTests.ps1 @@ -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\$randomNumber" -Force -ErrorAction SilentlyContinue | Out-Null $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 Write-Host "Wroking directory changed to $finalWorkingDirectory" }