문제

I want to archive files in a folder by winrar.

I only can archive one file using rar a -p0000 C:\backup\ C:\backup\test.txt

How can I archive files in a folder ?

도움이 되었습니까?

해결책

Try:

rar a -p0000 C:\backup\ C:\backup\*

If rar.exe does not accept that then (firstly its crap, and you should GET RID OF IT) and secondly you can use:

pushd "C:\backup\"
for /r %%a in (*) do (
rar a -p0000 C:\backup\ C:\backup\%%a
)
popd

And that should work just as fine. If thats not what your looking for or that doesn't work, please say so.

Mona

다른 팁

RAR syntax:

RAR <command>  [ -<switches> ]  <archive>  [ <@listfiles...> ] [<files...> ]  [ <path_to_extract\> ]

I can't identify <archive> in your command line. Wouldn't it be:

rar a -p0000 C:\backup.rar "drive:\some folder\*.*"
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top