powershell - 7 zip command line equivalent to the explorer extension -
i looking 7-zip command line call equivalent explorer extension option of add "foldername.zip"
:
i have tried:
& 7z c:\path\to\secondattempt, c:\path\to\secondattempt.zip
and following
7-zip [64] 16.02 : copyright (c) 1999-2016 igor pavlov : 2016-05-21
command line error:
unsupported command:
c:\path\to\secondattempt,
does know command line equivalent of explorer extension 7-zip?
fo 7zip should correct syntax
. .\7z.exe c:\path\to\secondattempt.zip "c:\path\to\secondattempt"
but prefer use directly .net
add-type -assemblyname system.io.compression.filesystem [system.io.compression.zipfile]::createfromdirectory("c:\path\to\secondattempt","c:\path\to\secondattempt.zip")
Comments
Post a Comment