LIST INI – SET INI

User discussion and information resource forum for scripting of TeraByte products using script lanugages such as TBScript, VBScript, Batch Files, and more.
Post Reply
odos
Posts: 37
Joined: Tue May 17, 2022 7:07 am

LIST INI – SET INI

Post 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?
:? :? :? :? :?
TeraByte Support(PP)
Posts: 1644
Joined: Fri Aug 12, 2011 12:51 am

Re: LIST INI – SET INI

Post 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.
odos
Posts: 37
Joined: Tue May 17, 2022 7:07 am

Re: LIST INI – SET INI

Post by odos »

Thank you :D It's becomes a lot easier when it's pointed out :oops: . Thanks again.
odos
Posts: 37
Joined: Tue May 17, 2022 7:07 am

Re: LIST INI – SET INI

Post 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
odos
Posts: 37
Joined: Tue May 17, 2022 7:07 am

Re: LIST INI – SET INI

Post by odos »

Okay I've figured it out from reading the forum. The variable has to be inside "#Variable#"

Thanks anyway
TeraByte Support
Posts: 3598
Joined: Thu May 05, 2011 10:37 pm

Re: LIST INI – SET INI

Post by TeraByte Support »

"string " # variable # "more string"
Post Reply