Variable Use

User discussion and information resource forum for scripting of TeraByte products using script lanugages such as TBScript, VBScript, Batch Files, and more.
Post Reply
robertd
Posts: 22
Joined: Mon Dec 02, 2013 6:01 am
Location: Victoria, Australia

Variable Use

Post by robertd »

Is there a way using TBscript to substitute a variable into a parameter string ?

For example :

In the the line

exec("c:\efi\bootit\imageu.efi /b /uy /d:1 /f:0@0x2:^"\TeraByte Image\XXXXXX\System Backup^" /v",1)

I would like XXXXXX to be the value of a variable set earlier in the script.

Appreciate any suggestions

Robert
Eric
Posts: 209
Joined: Mon Sep 05, 2011 6:53 pm
Location: France

Re: Variable Use

Post by Eric »

If "a" is the variable, you replace your XXXXXX with the following:
" # a # "
robertd
Posts: 22
Joined: Mon Dec 02, 2013 6:01 am
Location: Victoria, Australia

Re: Variable Use

Post by robertd »

Hi Eric

Worked like a dream ! - will save a few lines of code !
Thanks for the quick reply - appreciate it

Robert
Post Reply