Jump to content
Sign in to follow this  
cloudkiaDotCom

Weird problem

Recommended Posts

Well it does work, but not exactly like you wanted it.

@WorkingDir is changed on successful return.

So, if your script is on C:\ and the file you select in FileOpenDialog is on D:\,

then the file you INIWrite will actually be on D:\.

Share this post


Link to post
Share on other sites

What ? Select a file in a folder and when your script is finished you open that folder

and find out that your "testing.ini" is saved there. Is that what you wanted ? If not

then you need to specify the full path (@ScriptDir & "\testing.ini") or you need to

change @WorkingDir back to the one you want (by using FileChangeDir).

Edit : oh, what the hell :

$a = "abc"

$b = FileOpenDialog("wa","","exe(*.exe)")
FileChangeDir(@ScriptDir)

IniWrite("testing.ini", "Games Path", $a, $B)
Edited by Helge

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  

×
×
  • Create New...