Domanda

In the actual UI of WinRAR you can create an sfx file and have the following sfx options:

Under General Tab:
Path to extract: Create in current folder

Under Modes Tab:
Silent mode: Hide all

Under Text And Icon Tab:
Load the SFX Icon from the file: Choose the certain file

How would I do this using batch files?

Also, how would I add a directory, rather than just a single file using the batch method?

I'm not too good with batch files, heck - I ain't ever done batch files - I was just looking at the switches and I couldn't figure out how I would do it. Please, if someone could tell me or even guide me, it will be much appreciated.

Thanks in advance.

È stato utile?

Soluzione

You would need to use the winrar command line, A GUI is not conducive to manipulation via a batch file.

E.g;

winrar a -sfx -z"XXX.INI" OUTPUT.EXE

XXX.INI is a text file that contains the sfx options as shown under "SFX Commands" in the WinRar help file, e.g. silent=1.

(There is also a SFX commands: script sample)

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