Jump to content

Recommended Posts

Posted (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 by cueclub
Posted (edited)

ShellExecute(@ScriptDir & "\settings.ini")

Also, there are some ini specified functions:

IniDelete, IniRead, IniReadSection, IniReadSectionNames, IniRenameSection, IniWrite, IniWriteSection

Edited by SeF
Posted

run("notepad "

er, yup thats what I forgot. :idea: Thanks somdcomputerguy

SeF, 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

:)

Posted (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 by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

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
×
×
  • Create New...