Page 1 of 1

Variable Use

Posted: Wed Oct 17, 2018 5:02 am
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

Re: Variable Use

Posted: Wed Oct 17, 2018 5:26 am
by Eric
If "a" is the variable, you replace your XXXXXX with the following:
" # a # "

Re: Variable Use

Posted: Wed Oct 17, 2018 10:29 am
by robertd
Hi Eric

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

Robert