Domanda

I am trying to rar multiple files by using exec() in php. (using rar command line)

sample code:

exec("rar a CommandOptionsHere File.rar File.txt"); 

The above code is to rar a single file, how do rar multiple files at one line of code?

Volumn split is possible at later stage.

Any advice?

P/S: i want to rar multiple files, not folder.

È stato utile?

Soluzione

Like this:

exec("rar a CommandOptionsHere File.rar File1.txt File2.txt");

see: http://pl.digipedia.org/man/doc/view/rar.1/

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top