Page 1 of 1

LIST INI – SET INI

Posted: Thu Jun 09, 2022 6:12 pm
by odos
Hi again, does anyone know if it's possible to use LIST INI and SET INI from within a script? I have tried numerous ways of using the commands in a script, even just that command on it's own but all I get is Syntax Error.

If I copy paste the command from my script to the command window it works perfectly so the question is, is it me being dense again or are those commands not usable in a script?
:? :? :? :? :?

Re: LIST INI – SET INI

Posted: Thu Jun 09, 2022 6:17 pm
by TeraByte Support(PP)
For those types of commands you'll need to use the ext() function (page 8 in tbscript manual). There's an example of reading from an INI file there too.

Re: LIST INI – SET INI

Posted: Thu Jun 09, 2022 7:18 pm
by odos
Thank you :D It's becomes a lot easier when it's pointed out :oops: . Thanks again.

Re: LIST INI – SET INI

Posted: Fri Jun 10, 2022 9:18 am
by odos
Is it possible to use SET INI and LIST INI in a script but use string variables instead of text?

For example.


SET INI variable1 variable2 variable3 variable4

Instead of

SET INI C:\EFI\BootIt\BOOTIT.INI Options Background \EFI\BootIt\picture1

Re: LIST INI – SET INI

Posted: Fri Jun 10, 2022 2:25 pm
by odos
Okay I've figured it out from reading the forum. The variable has to be inside "#Variable#"

Thanks anyway

Re: LIST INI – SET INI

Posted: Sun Jun 12, 2022 2:59 pm
by TeraByte Support
"string " # variable # "more string"