Hide filenames at compression time

Asked

Viewed 123 times

2

I am using the syntax below to zip files.

7z u -t7z destino\arquivo.7z origem\arquivo.*.

The parameter u does with the 7z.exe compact only the modified files. My doubt is that when I run this command via command prompt, it appears the names of the files being compressed.

Is there any way to do this compression in CMD in hidden mode? That is, without the user seeing which files are being compressed?

  • In my view the question is about command line (as the ap requested "how to do this compression in the CMD secretly") and the community was very tolerant on similar issues (command line), for example: http://answall.com/q/13945/3635 and http://answall.com/questions/21655/existe-um-sudo-para-windows

  • @Guilhermenascimento These two issues you mentioned involve programming batches. Already this one not.

  • @But it’s already closed! Well, about accepting or not accepting questions like the Superuser site, this has already been proposed here, and the community so far has not embraced the idea.

  • But as I told you before, this debate is always valid. If you want to rekindle one of the discussions on the subject at the goal (as this, this and this), or open a new.

  • 1

    Debate: http://meta.pt.stackoverflow.com/q/2471/3635

1 answer

2


As stated in the Superuser, just add you > NUL: at the end of the command, it would look something like this:

7z u -t7z destino\arquivo.7z origem\arquivo.*. > NUL:

Note that it hides everything.

Another interesting answer is this in Superuser:

It is highly recommended that you view the state of the process. To ignore most messages and leave only the confirmation ones use:

7z u -t7z destino\arquivo.7z origem\arquivo.*. | findstr /b /r /c:"\<Everything is Ok" /c:"\<Scanning" /c:"\<Creating archive"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.