i need help with batch file for WINRAR pleasee hi i am trying to use winrar to convert all my different folders individually from one location to another.
example:
c:\projects\test 
c:\projects\country 
c:\projects\db 
to
c:\backup\test.rar 
c:\backup\country.rar 
c:\backup\db.rar 
I am trying the following cmd, which works but what it does is that it gets all the folders in the projects folder into the backup
for /f "delims==" %%D in ('DIR C:\projects /A /B /S') do ( 
"C:\Program Files\WinRAR\WinRAR.EXE" m -r "c:\backup\projects.rar" "%%D" 
) 
but this is what it does
c:\backup\project.rar (it does contain all the files if i extract) 
i want them separetely 
can you please help?