bat file using winrar taking too long to run
Posted
by Jessie
on Stack Overflow
See other posts from Stack Overflow
or by Jessie
Published on 2010-06-17T04:17:31Z
Indexed on
2010/06/17
4:23 UTC
Read the original article
Hit count: 399
hi guys, i have this scripts which extracts all my folder's and files from my c:\projects locations and put its in winrar and transfers them to c:\backup\project
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"
)
i have also tried the below script which uses the same source c:\projects
but put them in their own separate winrar folder like in the source then transfers the folders into my c:\backup.
FOR /F "DELIMS==" %%D in ('DIR C:\projects /AD /B') DO (
"C:\Program Files\WinRAR\WinRAR.EXE" m -r "C:\Backup\%%D.rar" "%%D"
)
my question is, my second scripts only takes two hours to run when my first script takes over 24 hours to run, is there any way to make my first script faster? if anything shouldn't my first script be faster?
© Stack Overflow or respective owner