Jump to content

Recommended Posts

The code below is a simple example of how to get settings from outside the script,

use them in the script, and how to save them back to the file for use later, if wanted.

$readValue = IniRead(@ScriptDir & "\ini_test.ini", "section", "testkey", "default text...")
$newValue = InputBox("Test : INI<->Var", "Input a new text for the testkey..", $readValue)

If NOT @error Then IniWrite(@ScriptDir & "\ini_test.ini", "section", "testkey", $newValue)
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...