Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WINZIPMGR doesn't work in exe
Message
 
 
À
04/02/2003 07:07:49
Michael Ouellette
Australian Technical Services (VIC) Pty
Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00746490
Message ID:
00748900
Vues:
19
>Registry is already part of my project...
>
>Stepping through the program I can see this as the commandline:
>.cCommandLine ="C:\PROGRAM Files\WINZIP8\winzip32.exe -min -a -en "A:\tabback.zip" company.* employ.* test.*"
>
>Yes I know winzip8 is not standard but it's still found
>
>If I try for a return value: lcreturn= owinzip.AddFiles( destin, "company.* employ.* test.*")
>
>I get .T.
>
>Running the exe through the development environment fails also!??
>
>Cheerio

The command line looks fine. FWIW I can run your scenario as a PRG, as an EXE from the command window, and as a standalone EXE and in each case it creates the zip file as expected.

BTW this is not an issue with embedded quotes, as it might seem from the way you looked at the cCommandLine property (I'm guessing you did this in the debugger). You can display the command line with ?o.getwinzipcommandline() after o.addfiles() has been called, and it will be shown as it actually is, without the leading and trailing quotes.

A return value of .T. simply means that the program ran to completion without any errors that it could detect. In your original post you said that "nothing" happens when you run this as an EXE. By "nothing" do you mean that your A:\tabback.zip file is being created but there's nothing in it, or that is it not being created at all?
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform