I have a simple routine as follows

**where mbaks is drive letter plus filename
         CLOSE DATA
         ** others on the network are ok


         Do Case
         Case File('AZIP32.DLL')
            WAIT WINDOW NOWAIT 'Creating backup FILE ('+mbaks+') using Azip32'
            oldfile=mbaks+".ZIP"
            IF FILE("&oldfile")
               DELETE FILE &oldfile
            endif
            tt=azip(.T.,"&mbaks","*.dbf *.fpt *.cdx *.fr? -foxuser.*")

            IF FILE("&oldfile")
               =MESSAGEBOX('Backup file ('+mbaks+') has been created',0,'')
            endif

         Case File('WINZIP32.exe')            && in case they didn't
install it under program files
            Run /N winzip32 -a -r -p &mbaks *.Dbf *.fpt *.Cdx *.fr*

         Case File("c:\program files\winzip\winzip32.exe")
            Run /N c:\Program Files\winzip\winzip32.Exe -a -r -p
&mbaks *.Dbf *.fpt *.Cdx *.fr*
         ENDCASE

         do tropen      && re-open the tables

I hope this helps
With Azip, I have a vague memory that it is important to delete the
old file before creating a new file, especially with open files

Sytze




On Feb 7, 2008 2:33 PM, Paul Newton <[EMAIL PROTECTED]> wrote:
> Sytze de Boer wrote:
> > I don't know what's going on here
> > I use azip32.dll in my applications to create backups as an
> > alternative to Winzip
> > Especially now that Winzip only allows limited free use days
> >
> > I believe the virus message is erroneous
> >
> > Sytze
> >
> Thanks Sytze
>
> I can find several sites to download the DLL from but can you give me a
> pointer to some help/docs/references ...
>
> Paul Newton
>
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to