Rar only certain extensions?

1

1

I'm using RAR at cmd

How can I rar only *.cs && *.ashx ?

I tries with the @listfiles.lst file which contains the extensions but it doesn't work. ( it adds all files !)

any help ?

the command is

rar a @t.lst -t -rr1024 -isnd -m1 -mt5 -r c:\Projects\ES2\

where t.lst is :

*.cs
*.ashx

Royi Namir

Posted 2013-04-04T14:56:47.710

Reputation: 4 568

You can always copy only those files to a separate directory and then rar them as a last resort. – gronostaj – 2013-04-04T15:08:04.067

Answers

1

sourceSyntax: rar a rarfile file-to-add [file-to-add...]

# rar a source.rar *.cs *.ashx

RAR 3.90 beta 2   Copyright (c) 1993-2009
Alexander Roshal   3 Jun 2009
Shareware version         Type RAR -? for help
Evaluation copy. Please register.

Creating archive var-log-cups.rar
Adding    test.cs OK
Adding    test.ashx OK
Done

Obligatory scolding: Stop using RAR. The RAR format is proprietary, and the creators have shown no interest in opening the specifications. There are no compelling reasons to use it over any number of alternatives.

jnovack

Posted 2013-04-04T14:56:47.710

Reputation: 1 266

Hi. I dont understnad why not to use RAR. and if so , what to use ? 7z ? – Royi Namir – 2013-04-05T04:45:25.670

@RoyiNamir, 7zip is a good alternative, and recommended. It is newer and has better compression and options. RAR is outdated. – jnovack – 2013-04-05T13:19:23.553

1@jnovack RAR 3.90 is outdated but 4.20 is comparatively new, dated 2012. Being closed-sourced is not a reason to stop using the software, is it? Windows is also closed-sourced. – Alexey Ivanov – 2013-04-05T20:26:25.073