Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CreateProcess Problems
Message
De
21/11/2003 11:02:03
 
 
À
20/11/2003 17:48:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00852013
Message ID:
00852332
Vues:
14
UPDATE: It also appears that it only works with the double quotes, not single quotes?? (Tricky to get done programmatically, how to?)

OKAY, it is now working if I do this manually like the example below. This works:
llivansokay=RunAndWait(.null., ["c:\Program Files\IVANS\TransMan\Transman.exe"  /A /M:AIDOWN])
Now my problem is sending the values programmatically. I cannot get it quite right:
*This value is pulled from an ini file programmatically: lcivansapp=get_ini(...
lcivansapp = "c:\Program Files\IVANS\TransMan\Transman.exe"
*I set this myself in the prg just as it is here it because it will not change
lcivansparm = " /A /M:AIDOWN"
*Put the two values together and add the quotes and brackets
Exepath = "['"+lcivansapp+"'"+lcivansparm+"]"
*Yet the below errors out - createprocess bombs completely
llivansokay=RunAndWait(.null.,Exepath)
How do I get the quotes and brackets in there programmatically?

TIA,
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform