I have the following script:
$ExistPath = Test-Path -PathType container C:\Publicação\SQL-Release\Services
if ($ExistPath)
{
Write-Host "Removendo diretorio!"
Remove-Item -Path C:\Publicação\SQL-Release\Services -Recurse -Force
}
Write-Host "Criando diretorio!"
New-Item -ItemType Directory -Force -Path C:\Publicação\SQL-Release\Services
Copy-Item .\Services\MyServices\bin\Release C:\Publicação\SQL-Release\Services\Nalin -Recurse
But when I run it, it creates a directory with characters that are very different than expected. In case:
C:\Publicação
How to solve?
Thank you.