Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run command Failed
Message
 
To
09/07/1998 11:53:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00115764
Message ID:
00115836
Views:
15
>I'm trying to execute a run command in click even of a button.
>The string I'm trying to execute is
> run /n &exestring
>exestring = 'c:\quake2\Quake2.exe +set dmflags 16408 +set hostname "Enter Host Name Here" +set port 27910 +set timelimit 20 +set fraglimit 30 +set maxclients 16 +set rate 25000 +set cheats 0 +set allow_download 1 +set password "" +set dedicated 1 +set deathmatch 1'
>
>This string is 251 characters long. When I execute this from the Run box in win9x it works.. Also I can use a run command in vfp if I use fewer parameters in the string.
>
>Also is there a way around the max string size? I reallly need the executable string to be about 270-290 characters.. Thanks in advance
Joe,

The limit for a string is 2GB, but the limti of a macro expansion is 255 or so. You can break the macro up into smaller ones;
exestring1 = 'c:\quake2\Quake2.exe +set dmflags 16408 +set hostname' + ;
             ' "Enter Host Name Here" +set port 27910 +set timelimit 20 +set exestring2 = 'fraglimit 30 +set maxclients 16 +set rate 25000 +set cheats 0 ' +;
             '+set allow_download 1 +set password "" +set dedicated 1 +set ' + ;
             'deathmatch 1'

RUN /N &exestring1 &exestring2
Previous
Reply
Map
View

Click here to load this message in the networking platform