Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 :

share|improve this question
You can always copy only those files to a separate directory and then rar them as a last resort. – gronostaj Apr 4 '13 at 15:08
up vote 1 down vote accepted

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

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.

share|improve this answer
Hi. I dont understnad why not to use RAR. and if so , what to use ? 7z ? – Royi Namir Apr 5 '13 at 4:45
@RoyiNamir, 7zip is a good alternative, and recommended. It is newer and has better compression and options. RAR is outdated. – jnovack Apr 5 '13 at 13:19
@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 Apr 5 '13 at 20:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .