Zip function on win 7
Mike Matthews
omnis at lineal.co.uk
Thu Aug 16 17:06:40 EDT 2012
Quite sure. 34c tomorrow and for the rest of August. Yes, quite sure.
Mike
Mike Matthews, Managing Director, Lineal Software Solutions Ltd
Apple Reseller, Microsoft Partner, SQLWorks Business Partner
phone: 01271 850550 | web: lineal.co.uk | email: mike at lineal.co.uk
On 17 Aug 2012, at 00:01, Wizardcompserv at aol.com wrote:
> Are you sure about that it could be raining
>
> Kind Regards
> Wendy Osbaldestin
> Wizard Computer Services
> _www.wizardcompserv.co.uk_ (http://www.wizardcompserv.co.uk/)
> Tel: 01260271647
>
>
> In a message dated 16/08/2012 19:39:23 GMT Daylight Time,
> omnis at lineal.co.uk writes:
>
> Tomorrow is fine.
>
> Thanks
>
> Mike
>
> Mike Matthews, Managing Director, Lineal Software Solutions Ltd
>
> Apple Reseller, Microsoft Partner, SQLWorks Business Partner
> phone: 01271 850550 | web: lineal.co.uk | email: mike at lineal.co.uk
>
> On 16 Aug 2012, at 20:50, "Pedro Santos" <pedro.santos at macwin.pt> wrote:
>
>> I have to check, but theoretically the code execution should halt until
>> the zipping process is finished.
>> If not, you can create a while loop to check if the file is created
>> recording its size on each loop and wait until it doesn't change.
>>
>> I can't look at the code right now, but I can check it for you tomorrow
>> if you want.
>>
>> -----Mensagem original-----
>> De: Mike Matthews [mailto:omnis at lineal.co.uk]
>> Enviada: quinta-feira, 16 de Agosto de 2012 18:39
>> Para: OmnisDev List - English
>> Assunto: Re: Zip function on win 7
>>
>> Pedro,
>>
>> How do you know the zipping is finished? If you have a large file to
>> do, it could take over a minute to zip.
>>
>> Thanks
>>
>> Mike
>>
>>
>>
>> Mike Matthews, Managing Director, Lineal Software Solutions Ltd
>>
>> Apple Reseller, Microsoft Partner, SQLWorks Business Partner
>> phone: 01271 850550 | web: lineal.co.uk | email: mike at lineal.co.uk
>>
>> On 16 Aug 2012, at 20:17, "Pedro Santos" <pedro.santos at macwin.pt> wrote:
>>
>>> I was in a meeting. Sorry for the delay.
>>>
>>> I changed the command since the example I had was to compress a file
>>> and not a folder, but it has both a source and target folder
>> parameters.
>>> If you call the executable with a "/?" or a "/h" it should list all
>>> the parameters it accepts.
>>>
>>> I'm glad it helped.
>>>
>>> Regards,
>>> Pedro
>>>
>>> -----Mensagem original-----
>>> De: Will Adkin [mailto:will.adkin at lineal.co.uk]
>>> Enviada: quinta-feira, 16 de Agosto de 2012 15:56
>>> Para: OmnisDev List - English
>>> Assunto: Re: Zip function on win 7
>>>
>>> Got it - found a great examples site at
>>> /www.dotnetperls.com/7-zip-examples
>>>
>>> Thanks again!
>>>
>>> Will Adkin, Software Development Manager, Lineal Software Solutions
>>> Ltd Apple Reseller, Microsoft Partner, SQLWorks Business Partner
>>> office
>>> phone: 01271 850550 | web: lineal.co.uk | email: will at lineal.co.uk
>>>
>>> On 16 Aug 2012, at 15:13, Will Adkin <will.adkin at lineal.co.uk> wrote:
>>>
>>>> Thanks Pedro - this is a great help
>>>>
>>>> the only thing is it always seems to zip the Omnis dev folder and put
>>
>>>> it in the lvcFolder
>>>>
>>>> so if lvcFolder is the destination folder where do you specify the
>>> source folder?
>>>>
>>>>
>>>> Will Adkin, Software Development Manager, Lineal Software Solutions
>>>> Ltd Apple Reseller, Microsoft Partner, SQLWorks Business Partner
>>>> office phone: 01271 850550 | web: lineal.co.uk | email:
>>>> will at lineal.co.uk
>>>>
>>>> On 16 Aug 2012, at 14:14, Pedro Santos <pedro.santos at macwin.pt>
>> wrote:
>>>>
>>>>> Hi Will.
>>>>>
>>>>> We use 7zip with the command line:
>>>>>
>>>>> Start program minimized {[con(lvc7zipfolder,'\7z.exe a -sfx7z.sfx
>>>>> -t7z ',lvcFolder,' -m0=BCJ -m1=LZMA:d=25 -mx=9 -ms -mmt')]}
>>>>>
>>>>> Hth,
>>>>> Pedro
>>>>>
>>>>> -----Mensagem original-----
>>>>> De: Will Adkin [mailto:will.adkin at lineal.co.uk]
>>>>> Enviada: quinta-feira, 16 de Agosto de 2012 13:15
>>>>> Para: omnisdev-en at lists.omnis-dev.com
>>>>> Assunto: Zip function on win 7
>>>>>
>>>>> Hi List,
>>>>>
>>>>> Does anyone know of a way to zip a folder and its contents on a
>>>>> Windows
>>>>> 7 machine (64 bit) using Omnis 5.2.1? We have this code to do it on
>>>>> a
>>>>> mac:
>>>>>
>>>>> ; Prepare the applescript.
>>>>> Begin text block
>>>>> Text: tell application "Finder" (Carriage return)
>>>>> Text: do shell script "cd [ParentDirPosixPath] ; zip -r
>>> '[ZipFileName]'
>>>>> '[SourceName]'" (Carriage return)
>>>>> Text: end tell (Carriage return)
>>>>> End text block
>>>>> Get text block Script
>>>>>
>>>>> ; Execute the applescript.
>>>>> Do $runapplescript(Script,Result) Returns ErrCode
>>>>>
>>>>> I've been spending all morning trying to figure out the world of
>>>>> dll's and SHELL32, but so far no joy. No luck with Java either...
>>>>>
>>>>> If any one else does this in their app i'd love some pointers...
>>>>>
>>>>> Thanks in advance,
>>>>>
>>>>> Will Adkin
>>>>> Lineal
>>>>>
>>>>>
>>>>> Will Adkin, Software Development Manager, Lineal Software Solutions
>>>>> Ltd Apple Reseller, Microsoft Partner, SQLWorks Business Partner
>>>>> office
>>>>> phone: 01271 850550 | web: lineal.co.uk | email: will at lineal.co.uk
>>>>>
>>>>> _____________________________________________________________
>>>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>>>> _____________________________________________________________
>>>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>>>
>>>> _____________________________________________________________
>>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>>
>>> _____________________________________________________________
>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>> _____________________________________________________________
>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
>
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list