Announcement

Collapse
No announcement yet.

Loops

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Loops

    I want to use AMS3.0 to modify the registry prior to executing a program. However, the items changed in the registy will differ depending on the starting directory. I can create a .INI file for each directory, but I still need to be able to loop through the list. For example;
    Count = 3
    Item0 = "Joe"
    Item1 = "Bob"
    Item2 = "Mary"
    I need to do something like:
    %idx% = 0
    while %idx% < %count%
    Set %tmp% from names.ini Section: names Key: Item%idx%
    Set value HKEY_CLASSES_USER\subkey Value: Item%idx% Data: %tmp%
    %idx% = %idx% + 1
    endwhile

    I've looked, but I can't find any obvious way to do this. What have I missed.
Working...
X