Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
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
add comment

1 Answer

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
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.

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.