cueclub Posted April 23, 2010 Share Posted April 23, 2010 (edited) I'm trying to link a menu item to open the settings filr. I have tried a number of ways to do it. FileOpen("settings.ini") FileOpen(@scriptdir & "\settings.ini") run(@scriptdir & "\settings.ini") Cant seem to get it to work. Am I missing something? Thanks Cue Edited April 23, 2010 by cueclub Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 23, 2010 Share Posted April 23, 2010 Open it how? If you want to open it with notepad, your last snippet is close, try this run("notepad " & @scriptdir & "\settings.ini") - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
SeF Posted April 23, 2010 Share Posted April 23, 2010 (edited) ShellExecute(@ScriptDir & "\settings.ini")Also, there are some ini specified functions:IniDelete, IniRead, IniReadSection, IniReadSectionNames, IniRenameSection, IniWrite, IniWriteSection Edited April 23, 2010 by SeF Link to comment Share on other sites More sharing options...
cueclub Posted April 23, 2010 Author Share Posted April 23, 2010 run("notepad "er, yup thats what I forgot. Thanks somdcomputerguySeF, I was trying to open it within a program to edit it if need be. The ini controls I am familiar with. Thank you both for your reply's Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 23, 2010 Share Posted April 23, 2010 (edited) If you associate the ini extension with notepad. In Windows. I don't remember exactly how to do that, in the Control Panel | Default Programs I think, then your last snippet (or the one in SeF's post) will act like the one in my earlier post.Edit: Oh jeez, sorry cueclub, you probably know that already.. Edited April 23, 2010 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
cueclub Posted April 24, 2010 Author Share Posted April 24, 2010 yup already knew it, But if someone else is browsing and doesnt know, that would be a good example Thanks again 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