Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any ideas on shell object
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
00964081
Message ID:
00964102
Vues:
12
This message has been marked as the solution to the initial question of the thread.
You cannot skip parameters passed into EXE. The best you can do is to use placeholders for empty parameters that your EXE understands. See How to pass parameters to VFP EXE FAQ #17861 for more info.

>I am using shell object to run an application (which accepts 3 parameters).my code is
>lc_runcmd	= "vipeasyclaim.exe " + lc_runtype + " " + lc_key + " " + lc_woption
>lo_Shell = createobject("wscript.shell")
>if type("lo_Shell") = "O"
>        * ---Object was created - Run the command---
>        QQwState    = 4 &&7                 && Run the Dos Command in a Minimised Window
>        QQwait      = 0            		    && 0 = NoWait, 1 = Wait
>	
>        lo_Shell.Run(lc_runCmd,QQwState,QQwait)
>        wait clear
> else
>        * Problem creating the object
>        =messagebox("ERROR: Could not create an object to run the executable ")
>ENDIF
>
>its works fine.sometimes one of these parameters can be empty.in this example say lckey is empty and when i run above code its taking only 1st parameters ignoring 2nd(which is empty) and 3rd param which has value.
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform