Announcement

Collapse
No announcement yet.

Get and Save ?!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get and Save ?!

    Hello Every One.

    I Have 1 INI File With 300 Section and
    i want to Get all Value "File=..\" and Save All to another INI File with this form :



    My INI File :

    Code:
    [asdFile]
    version = 1.0
    no = 321
    File = ../test1.dll
    
    [qweFile]
    version = 1.0
    no = 789
    File = ../test2.dll
    
    [zxcFile]
    version = 1.0
    no = 456
    File = ../test3.dll
    
    ...
    New INI File :


    Code:
    [NewFile}
    
    urlx[1] = "http://www.test.com//test1.dll
    
    urlx[2] = "http://www.test.com//test2.dll
    
    urlx[3] = "http://www.test.com//test3.dll
    ...
    
     or :
     
     [asdFile]
    urlx[1] = "http://www.test.com//test1.dll
    
    [qweFile]
    urlx[2] = "http://www.test.com//test2.dll
    
    [zxcFile]
    urlx[3] = "http://www.test.com//test3.dll

    i use this but this script not work:

    PHP Code:
        local source INIFile.GetSectionNames("AutoPlay\\Docs\\myfile.ini");
        
    local pattern "(file=../([0-9 a-z A-Z %- _]+)).%dll"

        
    local i 1;
        for 
    link in string.gmatch(sourcepattern) do

        
    INIFile.SetValue(_DesktopFolder.."\\AlbumArt\\My Settings.ini""Download""urlx""["..i.."]"link);
        
    2;

    end 

    Can anyone help me to find whats wrong !?

  • #2
    Originally posted by JSTX2013 View Post
    PHP Code:
        local source INIFile.GetSectionNames("AutoPlay\\Docs\\myfile.ini");
        
    local pattern "(file=../([0-9 a-z A-Z %- _]+)).%dll"
        
    local i 1;
        for 
    link in string.gmatch(sourcepattern) do
        
    INIFile.SetValue(_DesktopFolder.."\\AlbumArt\\My Settings.ini""Download""urlx""["..i.."]"link);
        
    2;
    end 
    Well the GetSectionNames will only return there names not they'er value I have already said this two you in another past, RTM on ALL INI functions and what they do before trying to guess

    table INIFile.GetSectionNames (string Filename )

    Originally posted by TheHelpFile;
    Description
    Returns all of the "section" names within an INI file.
    Plugins or Sources MokoX
    BunnyHop Here

    Comment


    • #3
      Thanx for Reply.
      Is there anyone that can do this? (i'm ready for paying)
      Please Help...

      Comment


      • #4
        Originally posted by JSTX2013 View Post
        Thanx for Reply.
        Is there anyone that can do this? (i'm ready for paying)
        Please Help...
        You don't seem to be a green member via the forum, aka paying member if AutoPlay Media Studios, if you are green up and might be willing to do your work for you but all the simple commands are in the help file for it.

        But people are not going to help you when its clear your not willing to study the help file.
        Plugins or Sources MokoX
        BunnyHop Here

        Comment

        Working...
        X