Mittwoch, 20. Januar 2016

Create empty zip file

if (
       -not (
            Test-Path `
                -Path $pathAbsoluteArchiveFile `
                -PathType Leaf
       )
 ) {
       Set-Content -Path $pathAbsoluteArchiveFile (
             "PK" + [char]5 + [char]6 + ("$([char]0)" * 18))
 }

1 Kommentar:

  1. Probably of no use if one knows about http://thiemos-powershell.blogspot.ch/2016/05/zip-files-and-directories.html

    AntwortenLöschen