PDA

View Full Version : Help With Winrar Program


PROPHET07
04-24-2007, 05:58 PM
I want to make it so when i click on a button it invokes winrar...i want to remake the program made by (mz241508)

http://www.indigorose.com/forums/showthread.php?t=18457

It would be great to get hold of the source material from the guy but i cant find anything anywhere....

Thought id start my own thread as ill probably need alot of help doin this....

I want it to be like what the other guy did but i need it to use winrar & not winzip as ive never liked winzip and i do alot of uploading to rapidshare....

I also need it to do a couple of specific things that his doesnt do like have the option to split the files into certain sized pieces....

My problem is ive got the rough graphics done with all the buttons and boxes...I just dont know were to start...yes im a bit of a noob with all this.....

I can use the program just not very good with the scripting side of it as its all ned to me....

any help would be great......but expect to be asked alot of questions if you decide to help as like i said im very new to this...

RizlaUK
04-24-2007, 06:19 PM
ams dosent support winrar,

its not wnizip that is used its dynazip,

i can proberly help with the file splitting part but winrar is out of the question

PROPHET07
04-24-2007, 07:08 PM
So i cant have Winrar.exe in the Root folder & have the commands point to it.....& how does this other program work & is it free.....Im asking cos i own a copy of winrar but not winzip..

Ive remade the graphics from what the other person did....Trying to get it looking as close to what his looked like as possible....that bit is all done now all i need to do is add all the various commands in so that it all works....if you look at his that is what mine does all the same boxes and so on...the only thing mine doesnt incorporate is the password box...as ive no need for that at all...

The first bit is (it says file name) on his i pick the name and the rusulting zip file has this name......how do i do this.......see i said id need a lot of help........you'll probably end up building it for me in a virtual sense....:) sorry for that

http://img3.freeimagehosting.net/uploads/69d30a8fa2.jpg

PROPHET07
04-24-2007, 07:24 PM
Picture of what it looks like

http://i15.tinypic.com/2yo3d36.jpg

RizlaUK
04-24-2007, 07:45 PM
So i cant have Winrar.exe in the Root folder

winrar is not licensed for distribution, im not sure i want to touch anything that that even borders a idea like that, all the functions in mz241508's zip app are all internal ams functions, ams uses dynazip as its zip engine, IR paid for redistribution rights so we can use it in our apps, look in the examples forum, there are loads of zip examples some i posted myself and some from IR staff

but ams (as far as i know) can not split files

PROPHET07
04-24-2007, 07:59 PM
Ok so NO winrar...but will you still help with the other stuff......The first bit is the bit that says File Name: what do i use in the script so it uses that name when creating a zip file....

Most of the downloads arent working the only 1 that is is yours & it doesnt really help explain what it is i need to do to get mine working.......

RizlaUK
04-24-2007, 08:09 PM
take a look at this example i made a while back, it covers the naming of the archive and will make the zip file from the items in the listbox

http://www.indigorose.com/forums/showthread.php?t=19196

PROPHET07
04-24-2007, 08:43 PM
Thats the one I have now.....Ive set it so it searches for the 2 file types i need & only them 2.....

I may have gotten round the Winrar problem......taking into consideration that most people already have this installed on there comp isnt it possible to have the project search for the winrar.exe on the persons pc in order to run the type of scripting i need.....& to display an error message if it doesnt find it like....Sorry but you dont seem to have WinRAR installed..This is needed to run this app...

how do i set the check boxes up so that it splits the files to the correct size.......also is it possible that when i select a folder for the files inside to be added that the file name is takin from the name of the folder....

RizlaUK
04-24-2007, 10:12 PM
yes, its quite easy to search for winrar on a users pc, that wont be a problem, and winrar can be run from the commandline so you could send the commands to it, iv never done it but google is your best bet here, research it a little and give it a shot, winrar is something iv never needed in my apps the zip functions always worked to all my needs,

im working on a small file splitting dll (but i cant promise anything) as it dosent work yet, but i do have a small example of a file splitting tool made with autoit that combined with the ams zip functions might achieve the same result


my advice......look into the cmd functions of winrar

PROPHET07
04-24-2007, 11:15 PM
winrar has all that built in....you can do pretty much anything with it through the command prompt.....although ive never messed with it i know it can be done......winrar will also split files into what size you wish through the - command IE -v15,000,000 would split them into 14.3 meg chunks

DLL'S
http://www.rarlab.com/rar_add.htm

CHANGES
http://www.rarlab.com/rarnew.htm

for a list of commands that winrar allows, download the demo open a command prompt on winrar.exe with the /h or /? after it for a full list of stuff it allows

RazorEye
04-25-2007, 07:38 AM
Also, you may want to consider 7-zip (http://www.7-zip.org) as another alternative. It is open source software covered under the GPL license. Furthermore, there is a portable version over at PortableApps.com (http://portableapps.com).

I've found that it's compression levels are some of the best out there, often beating WinZip and WinRAR. They both compressed a 230MB folder of drivers to the mid 60MB range depending on the settings, but 7-zip brought it down to a unbelievable 28.6MB.

RizlaUK
04-25-2007, 09:30 AM
I've found that it's compression levels are some of the best out there, often beating WinZip and WinRAR. They both compressed a 230MB folder of drivers to the mid 60MB range depending on the settings, but 7-zip brought it down to a unbelievable 28.6MB.

thats handy to know, but the true KING of compression is KGB Archiver (http://kgbarchiver.net/) although it has very high system requirements, UHARC also has a very high compression rate and is a pure command line application (if my memory servers me correctly, it can also split files as well) there are many GUI apps for UHARC why not check them out.

PROPHET07
04-25-2007, 10:20 AM
Uharc is about the best I know of.....I need this program to run Winrar...It doesnt even have to contain the exe itself as most people will have it installed i just need help scripting it....I can first have it check to see if the person using my prog has winrar installed...if not they can always get a working demo wich is legal.......(checked the site)...so you see there is no reason for me not to use winrar as im more familar with it than any of the others......+ ive seen what it can do were as files are concerned.......+ compression isnt really the main issue as the files me & the other people using this will be AVI....so compression doesnt really work....I would be using the STORE compression on winrar which basicaly means no compression at all.....as only 000.0001% is saved when compressing AVI files.....I just want the app to use the WinRAR command lines....as i would prefer this to be the case.........

If this isnt something uve done before then its a new challenge......hope you can help

I have all the app working...the only thing i need help with at this point before i change over to winrar is the splitting of the files...(see my pic above to see what i wish them to split to)...this is what i need help with at the moment...

PROPHET07
04-27-2007, 10:03 AM
I emailed WinRAR about the what you said & they said as long as none of my own info on my registered version is added to the cdrom..(told them it was going on a rom so they knew) they said it was OK & that its only the same as what they do online.....They did add that without my info the WinRAR.exe would stay in Trial Mode to which i answered it doesnt matter as the only thing affected by that is the authenticity record..which i will not be adding...

so im still stuck at the same problem...i have it so you can click either of 3 buttons which all split the files into the 3 sizes i asked for.....MY problem is i have no idea what the command is to take the files name as the name of the rarred files

PROPHET07
04-27-2007, 11:43 AM
I emailed WinRAR about the what you said & they said as long as none of my own info on my registered version is added to the cdrom..(told them it was going on a rom so they knew) they said it was OK & that its only the same as what they do online.....They did add that without my info the WinRAR.exe would stay in Trial Mode to which i answered it doesnt matter as the only thing affected by that is the authenticity record..which i will not be adding...

so im still stuck at the same problem...i have it so you can click either of 3 buttons which all split the files into the 3 sizes i asked for.....MY problem is i have no idea what the command is to take the files name as the name of the rarred files..

Ermmm refreshed my page and its posted again...soz