cloudkiaDotCom Posted October 5, 2006 Share Posted October 5, 2006 $a = "abc" $b = FileOpenDialog("wa","","exe(*.exe)") IniWrite("testing.ini", "Games Path", $a, $ How come this not work for me!? who can tell tell TELL ME!? Welcome to Cloudkia.comThe place to Navigate Google Maps on your computer and have your friends view it live from theirs. Link to comment Share on other sites More sharing options...
Helge Posted October 5, 2006 Share Posted October 5, 2006 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:\. Link to comment Share on other sites More sharing options...
cloudkiaDotCom Posted October 5, 2006 Author Share Posted October 5, 2006 My script and .ini put together. The result is not updated to the .ini... weird.. Welcome to Cloudkia.comThe place to Navigate Google Maps on your computer and have your friends view it live from theirs. Link to comment Share on other sites More sharing options...
Helge Posted October 5, 2006 Share Posted October 5, 2006 (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 October 5, 2006 by Helge Link to comment Share on other sites More sharing options...
cloudkiaDotCom Posted October 5, 2006 Author Share Posted October 5, 2006 How come? It work! thank Q ...~~ Welcome to Cloudkia.comThe place to Navigate Google Maps on your computer and have your friends view it live from theirs. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now