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 :
New INI File :
i use this but this script not work:
Can anyone help me to find whats wrong
!?
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 ...
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(source, pattern) do
INIFile.SetValue(_DesktopFolder.."\\AlbumArt\\My Settings.ini", "Download", "urlx""["..i.."]", link);
i = i + 2;
end
Can anyone help me to find whats wrong

Comment