sstanfie Posted July 24, 2008 Share Posted July 24, 2008 (edited) Hello. I'm trying to write a script to rar files in a directory and put each file in a separate .rar. Winrar has an option in the UI to "Put each file to a separate archive", but I don't see the same option using rar.exe I want to rar c:\PerfLogs\*.blg into separate .rar files. Will I have to read in each file in this dir with AutoIt and rar them one at a time? Can someone please post an example of how this can be done? Thank you very much in advance. Edited July 25, 2008 by sstanfie Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted July 24, 2008 Share Posted July 24, 2008 (edited) This is NOT a support forum. What do you think "Example Scripts" means? Edited July 24, 2008 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
sstanfie Posted July 25, 2008 Author Share Posted July 25, 2008 So, if I had asked this question in the General Support forum, THEN you would replied with something other than a smart ass answer?? Instead you're now the forum police? lol Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 25, 2008 Moderators Share Posted July 25, 2008 Hello. I'm trying to write a script to rar files in a directory and put each file in a separate .rar. Winrar has an option in the UI to "Put each file to a separate archive", but I don't see the same option using rar.exeI want to rar c:\PerfLogs\*.blg into separate .rar files.Will I have to read in each file in this dir with AutoIt and rar them one at a time? Can someone please post an example of how this can be done?Thank you very much in advance.Any particular reason it has to be a "rar" file? I know someone just did some work on it in the example scripts forum ("UnRarIt" by Rasim), but I can't imagine there being as much info on rar files here other than that, as there would be on say... 7zip.So, if I had asked this question in the General Support forum, THEN you would replied with something other than a smart ass answer?? Instead you're now the forum police? lolNo but I am .... *moved* Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
sstanfie Posted July 25, 2008 Author Share Posted July 25, 2008 Any particular reason it has to be a "rar" file? I know someone just did some work on it in the example scripts forum ("UnRarIt" by Rasim), but I can't imagine there being as much info on rar files here other than that, as there would be on say... 7zip.No, not necessarily. I'll check it out, thanks.No but I am .... *moved*Thanks. I tried moving it, but couldn't. Link to comment Share on other sites More sharing options...
pete1234 Posted July 25, 2008 Share Posted July 25, 2008 I'll second 7zip...you can include 7za.exe with your script as a standalone executable and use command line parameters for batch processing. You could read the files into an array, and then run a For loop to compress each file. Link to comment Share on other sites More sharing options...
Bert Posted July 25, 2008 Share Posted July 25, 2008 I've done some work using RAR on a command line basis. What you are asking for can be done, but what you need to do is specify the command so that you add the one file to the RAR, then loop so the command runs again with the next file and the next RAR. I suspect you want to do in in a batch, but I think the loop will be the way to go. It will be slow however. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now