Estou em busca de um código em vb6 para compactar um diretorio e se possível utilizando controle .ocx para rar ou zip para não ter a necessidade de referenciar o caminho da instalação do winrar ou winzip e se possível com uma progressbar para o andamento da cópia/compactação.
No formulário conter:
Text1 para caminho do diretorio;
Text2 para nome do arquivo a ser compactado;
Text3 destino do arquivo compactado;
Progressbar para andamento do progresso;
Botão para executar ação;
Agradeço desde já a atenção de todos. Muito obrigado
Welcome to the forum! Try https://www.example-code.com/vb6/zip.asp. And please try to write your posts in english. Okay? I used Google Translate to read your message. Perhaps it will produce acceptable results for posting in english.
And please try to write your posts in english. Okay?
I found it strange, because what gfranguelli wrote, I understood perfectly because it was in Portuguese ... but what you wrote I didn't understand because I need to use google translator too .... then I woke up and saw that my page needed to be translated.
And speaking of google translations, these days I opened a post and there were 3 lines written in English, when I activated the translation plugin, google translator omitted the third line in the translation ... I had to select the text and use another translator to find out what was written ..... strange that.
OP---not sure if you are following all that above or not...but, I took the liberty to take one of the examples from this link (was one from above, eventually, I think) and adopt one of dilettante's suggestions and make it more plainly for YOUR use (at least what I think you are looking for). It uses a progressbar, and allows you to select a directory to archive as well as a directory to save the archived zip file it creates. It is NOT my work, just some simple mods to help you.
You will have to download zlibWapi.dll (available at https://www.dlldownloader.com/zlibwapi-dll/). Simply copy it into my attached program's directory...no registration required.
Dear Sam, thank you very much for taking the time to answer my topic and I'm sorry for not getting back to you sooner, life's setbacks.
See if you can fix the code below, because the progress bar doesn't follow the progress of the compression, a relatively small directory takes a long time, the friend who reports the message comments that he should modify "objDOS_ReceiveOutputs", I don't know how to do that!
I'll take the opportunity and send you another link below a source code in Delphi that appears to be working, is it possible to convert this code to VB6?