Sign in to follow this  
Followers 0
Chris_1013

Iniread All Keys?

7 posts in this topic

Can anyone think of a way to IniRead all keys from a specific section, without knowing what they are called?

Dunno if it is possible or not?

Thanks Chris

Share this post


Link to post
Share on other sites



Have a look at the current unstable release: http://www.hiddensoft.com/forum/index.php?...pic=1662&st=15#

- Added: RegEnumKey() and RegEnumVal()


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

Sorry, I want to be able to do this for INI files, not registry keys.

Share this post


Link to post
Share on other sites

Easy :whistle:

Use a loop of FileReadLine from the line that have the [requested section] until a "" empty line or other begginning with a [ line...

Taken everything use the = equal to separe key and value.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

<slaps hand on forehead>

doh! of course, thinking it's an INI file makes me think I have to use IniRead!

Edited by Chris_1013

Share this post


Link to post
Share on other sites

bcording posted something similar in the Scripts and Scraps forum, I think.

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