Jump to content

Variable directory?


Riojii
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...