Jump to content

Edit: Example on how to use rar.exe in your script


 Share

Recommended Posts

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
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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