there are so many options for using batch files in windows, you can do virtually anything you want... people underestimate the use of batch files...

---------- Post added 19th May 2012 at 08:46 AM ---------- Previous post was 18th May 2012 at 11:36 PM ----------

In regards to your PM new-comer....

@ECHO OFF

cd C:\directory_with_files_you_want_to_compress

SET PATH=C:;C:\Program Files (x86)\WinRAR;C:\Windows\system32;C:\Windows;C:\Win dows\System32\Wbem;%PATH%

FOR /f "delims=" %%d IN ('DIR /B') DO WinRAR a -m0 -ep -df -x*.rar "C:\where_you_want_to_save_new_rar_files\%%~nxd.ra r" "%%~fd"


move /-y "C:\directory_with_files_you_want_to_compress\*.ra r" "C:\where_you_want_to_save_new_rar_files\"

EXIT
use this:

where -x*.rar means ?exclude all .rar files?. You can add more files to exclude for example add another -x*.zip

Since you excluded all rar files, they will stay in the original directory, thats what the next code does, move, this is simply moving all .rar files to the same directory where the compressions are being made.

Hope that helped...