Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

zipping Russian Character folders using powershell

$
0
0

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)}



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>