zip/unzip with powershell example
[Reflection.Assembly]::LoadWithPartialName( "System.IO.Compression.FileSystem" )
[system.io.compression.zipfile]::CreateFromDirectory("c:\temp", "s:\temp\test.zip")
[system.io.compression.zipfile]::ExtractToDirectory("s:\temp\test.zip","s:\temp")
more about [system.io.compression.zipfile] class:MSDN Developer Network
[Reflection.Assembly]::LoadWithPartialName( "System.IO.Compression.FileSystem" )
[system.io.compression.zipfile]::CreateFromDirectory("c:\temp", "s:\temp\test.zip")
[system.io.compression.zipfile]::ExtractToDirectory("s:\temp\test.zip","s:\temp")
more about [system.io.compression.zipfile] class:MSDN Developer Network
Комментариев нет:
Отправить комментарий