netrecov Posted December 8, 2009 Posted December 8, 2009 this is my func Func johnini() $varA = GUICtrlRead($MyCombo) ; MsgBox(0,"",$varA) Fileopen($varA & ":\history\john.ini", 0) EndFunc i cant seem to figure out how to open the ini file. i keep trying and im not getting any errors. any ideas?
Developers Jos Posted December 8, 2009 Developers Posted December 8, 2009 this is my funcFunc johnini() $varA = GUICtrlRead($MyCombo) ; MsgBox(0,"",$varA)Fileopen($varA & ":\history\john.ini", 0)EndFunci cant seem to figure out how to open the ini file. i keep trying and im not getting any errors. any ideas?Define "open a file", because the code does open the file after which you do not do anything with the Filehandle returned by FileOpen().So what is it you want to do with the INI file?Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
dantay9 Posted December 8, 2009 Posted December 8, 2009 Do you mean ShellExecute($FilePath) so you can actually see the text inside the file in notepad?
netrecov Posted December 8, 2009 Author Posted December 8, 2009 Do you mean ShellExecute($FilePath) so you can actually see the text inside the file in notepad?Func johnini() $varA = GUICtrlRead($MyCombo) ; MsgBox(0,"",$varA)ShellExecute("john.ini", "", $varA & ":\history", "open")EndFuncthis is what worked. Thank you guys for your help
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