Jump to content

Recommended Posts

Posted

Why won't this work? There's probably a simple explanation for it, and I'm just too tired to see it... :P

$ini=IniReadSection("AILauncher.ini", "Settings")
FileDelete("$ini[1][1]\SOG\*.ini")
Run("$ini[1][1]\Launcher.exe")

Is there another way to call a variable directory?

Posted

It looks like the problem is with the inverted commas:

$ini=IniReadSection("AILauncher.ini", "Settings")
FileDelete($ini[1][1] & "\SOG\*.ini")
Run($ini[1][1] & "\Launcher.exe")

I have not tried, but it could be the solution

CheersNobby

Posted

Is there another way to call a variable directory?

yes... since you know where your variable folder name is ( $ini[1][1] )

then just read that section key

$variable = IniReadSection("AILauncher.ini", "Settings", "Folder", "not found")
Run($variable & "\Launcher.exe")

not tested

8)

NEWHeader1.png

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...