Hi every One I am trying to zip some folders which includes some russian character
but i am getting an error that "cannot compressed the folder because it includes
character that cannot be sued in a compressed folder".
This is my zip script which i am calling from my main script
$path = $args[0] $files = $input if (-not $path.EndsWith('.zip')) {$path += '.zip'} if (-not (test-path $path)) { set-content $path ("PK" + [char]5 + [char]6 + ("$([char]0)" * 18)) } $ZipFile = (new-object -com shell.application).NameSpace($path) $files | foreach {$zipfile.CopyHere($_.fullname)}
↧
zipping Russian Character folders using powershell
↧