Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call another windows program
Message
De
09/07/1998 10:22:05
 
 
À
09/07/1998 04:13:09
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00115573
Message ID:
00115701
Vues:
12
>>Other than using the RUN /N command to run a windows based program, how you can you call it and pass parameters (Command line) to it? The command line version of:
>>
>>PrgStr = + " " +
>>RUN /N PrgStr
>>
>>This does not work as the RUN command will not accept a string variable to run with and with that you can't change the parameters that need to be passed. I have already tried DDE and its not a compatible program.
>>
>>Thanks
>>
>>Gary
>Gary,
>You could prepare the prgstr as you would type to call the winapp and then call it with macro substititution.
PrgStr = cProgPath_name + " " + cParameters_string
>RUN /N &PrgStr
Fox passes the string as if it was typed on console.
>Cetin

Cetin,

Thanks alot - I'll try this along with the shell execute. Appreciate the quick response. Have a good day!

Gary
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform