Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run command Failed
Message
De
09/07/1998 12:57:40
 
 
À
09/07/1998 12:52:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00115764
Message ID:
00115811
Vues:
16
>Even if I macro subst the whole command
>runme= "run /N " + launch
>&runme
>
>I get run command failed.
>
>Is there a limit to the length of a run command? I can run a shorter version of the string with no problems(tried about 50 char I think) and it works fine, but when I do the whole this(chars= 250-280) it don't work. I really don't want to fopen, fget, and fput the thing into a config file, but I might have to. Don't you hate it when 1 line of code keeps the app from working right, even though the syntax for that line if correct. Blahh..
>
>Mr. Pikman.. You always seem to know the answers to my questions, are you out there?

I guess your limit is with the command. Or maybe its with the macro expansion being limited. You could try to break the line up into multiple variables and macro expanding each one.

run /n &part1 &part2 &part3 ...

You probably should try executing the command from the VFP command window first to see if its the RUN command that has the limit, then try breaking the command up into multiple parts.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform