Jump to content

Recommended Posts

Posted

$a = "abc"

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

IniWrite("testing.ini", "Games Path", $a, $:ph34r:

How come this not work for me!? who can tell tell TELL ME!? :lmao:

Welcome to Cloudkia.comThe place to Navigate Google Maps on your computer and have your friends view it live from theirs.

Posted

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

Posted (edited)

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

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