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":

7 zip explorer extension

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

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -