Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run command Failed
Message
From
09/07/1998 12:57:40
 
 
To
09/07/1998 12:52:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00115764
Message ID:
00115811
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform