Jump to content

Recommended Posts

Posted

I want to compress big file (let’s say 13GB .bkf file). I want to have a batch file for that. Can anyone help me how to write such batch file? I have WinRar command line installed on my system. I’m using windows platform.


Posted

What is worng with this batch file ??? lets say i save that as comp.bat. after typing comp i have

Enter folder to compress: <- and i don't know what to type here :(:(:(

when i type C:\test - folder was not found

i'm sure that there is something missing or something wrong. can anyone help me? thanks for any suggestions :)

rem %1 name of attribute

echo %1

@echo off

set /P %my_folder%="Enter folder to compress: "

if exist %my_folder% goto %rar_file%

goto error

cd %my_folder%

rar.exe a %my_folder% -s

goto done

:error

echo folder was not found

:done

Posted

What is

rar.exe a %my_folder% -s
supposed to be doing?

You should be using something a little more along the lines of

rar a -m5 -mdg -v2097152k "%destpath%\%destname%.rar" "%my_folder%\%my_file%"

Also with a probable massive filesize you may wish to decrease the split archive sizes and use the -rv and /or -rr switches.

type

rar -?

in the appropriate directory for a full command and switch listing.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...