Hide filenames at compaction time [closed]

2

I'm using the syntax below to zip files.

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

The u parameter causes the 7z.exe to only compress the modified files. My question is that when I run this command via the 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 what files are being compressed?

    
asked by anonymous 13.02.2015 / 17:17

1 answer

2

As you can see in the SuperUser , just add > NUL: to 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 the SuperUser :

We strongly recommend that you view the status of the process. To ignore most messages and leave only the confirmation messages use:

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