Jump to content

Recommended Posts

Posted (edited)

Fore any one who got here from a Google search or from here.

Its super simple...

Run("rar a Data.rar *.*",@ScriptDir,@SW_HIDE)

Just make sure you compile your script together with rar.exe and install it to the script directory before you give the above code.

rar.exe is stand alone so you don't need anything else but the 300 something kb file and winrar doesn't have to be previously installed!

the above code will copy only files in the current directory and not sub directories..

If you wish to copy sub directories than have the rar.exe app install to the directory containing the directory you wan't to archive. say you wan't to archive C:\Program Files\mydata

you would install rar.exe to C:\Program Files and run a function like Run("rar a Data.rar MyData",@ScriptDir,@SW_HIDE) only after rar.exe was installed!

Hope I helped!Posted Image

Edited by xJSLRx

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
×
×
  • Create New...