Jump to content
Sign in to follow this  
cueclub

Trouble with opening a file

Recommended Posts

cueclub

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

Share this post


Link to post
Share on other sites
somdcomputerguy

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.

Share this post


Link to post
Share on other sites
SeF

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

Also, there are some ini specified functions:

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

Edited by SeF

Share this post


Link to post
Share on other sites
cueclub

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

:)

Share this post


Link to post
Share on other sites
somdcomputerguy

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.

Share this post


Link to post
Share on other sites
cueclub

yup already knew it, But if someone else is browsing and doesnt know, that would be a good example :)

Thanks again :idea:

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×