| View previous topic :: View next topic |
| Author |
Message |
kc7aad Contributor

Joined: 09 Oct 2005 Posts: 53 Location: Spokane Washington
|
Posted: Tue Feb 28, 2006 6:58 am Post subject: Creating variales for run / shell / etc programs |
|
|
OK... I'm not sure how to put this, so i'll do as best as I can. I am trying to build a utility to help me do many different things. Anything from running SHELL Commands to running RUN, RUNH and RUNZ Commands.
I thought about trying to use variales for it, depending on what the TYPE line in the .INI file is, but it didn't work.
| Code: |
:B1BUTTON
%%B4 = @INIREAD(TEST,TYPE,)
%%B4 %%S7
GOTO EVLOOP | [/code:1:fee7f8af62]
But it doesn't like it. How can I assign the SHELL and RUN, RUNZ and RUNH commands as variables according to what the ini file TYPE=ABC is set as??
All and any help or enlightenment is greatly appreciated!!!!!! |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Tue Feb 28, 2006 1:53 pm Post subject: |
|
|
Unfortunenately, commands such as the VDS shell command, or Run, Runh, or Runz, cannot be run, as a variable assignment, at runtime, because it needs to be compiled into the script. Alternatively, you could read your .ini file, determine which command is appropriate, and branch to a subroutine to use one of those four commands, and then pass the DOS or windows (shell) command to that subroutine as a variable...
Enjoy,
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
kc7aad Contributor

Joined: 09 Oct 2005 Posts: 53 Location: Spokane Washington
|
Posted: Wed Mar 01, 2006 6:29 am Post subject: |
|
|
| Thanks Hooligan!! It worked. I knew it had to be possible, but just couldn't figure it out without a little grand insight!!! |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Fri Mar 03, 2006 11:23 am Post subject: |
|
|
| Not sure what hes doing, but the shortcut function has a parameter insertion spot. |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Sat Mar 18, 2006 1:15 pm Post subject: |
|
|
| vtol wrote: | | Not sure what hes doing, but the shortcut function has a parameter insertion spot. |
I'll bite... What shortcut function ??? There's no shortcut function (that I can find) in my help file. _________________ cheers
Dave |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Sun Mar 19, 2006 1:10 am Post subject: |
|
|
| DaveŽ wrote: | | I'll bite... What shortcut function ??? There's no shortcut function (that I can find) in my help file. |
The LINK command _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Sun Mar 19, 2006 2:52 am Post subject: |
|
|
DOH!  _________________ cheers
Dave |
|
| Back to top |
|
 |
|