Sign in to follow this  
Followers 0
netrecov

trying to open a .ini file

4 posts in this topic

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?

Share this post


Link to post
Share on other sites



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?

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Do you mean ShellExecute($FilePath) so you can actually see the text inside the file in notepad?


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

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")

EndFunc

this is what worked. Thank you guys for your help

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  
Followers 0