Jump to content
Sign in to follow this  
Chris_1013

Iniread All Keys?

Recommended Posts

Chris_1013

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
Jos

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

- Added: RegEnumKey() and RegEnumVal()


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Chris_1013

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
ezzetabi

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
Chris_1013

<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
Valik

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  

×