Jump to content
Sign in to follow this  
Riojii

Variable directory?

Recommended Posts

Riojii

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?

Share this post


Link to post
Share on other sites
nobby

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

Share this post


Link to post
Share on other sites
Valuater

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

Share this post


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
Sign in to follow this  

×