Not sure why you'd want to generate an .inc file with the said list of .ini variants, if you just want to use them in the skin's context menu, but now on a second thought I'm not that confident a Lua script can do it, since one can't use the io.popen() function in Rainmeter's Lua:Well, I need a way to dynamically retreive all the variants regardless of number and the generate a .inc file using this info (I know how to do the generate part, I just need to be able to actually retreive said "data"). The fileview plugin is able to do this but within a skin using a list of predifined measures. I've come up with an idea of how I could use this but I just want to be sure that there isnt another way I could do this without me having to create 10 different measures for the variants of a skin each time I need it.
If there was a way I could simply "Loop through a folder" with lua, it would heavily simplify what I'm trying to do. I've searched and havent found any way I can do this that doesnt require a lua extension of some sort. At the bare minimum I just want to be able to go through the children of a folder while retreiving all of said childrens' names with a Lua script
https://docs.rainmeter.net/manual/lua-scripting/#Restrictions
I get the point about their number being dynamic and FileView using predefined measures, though with a bit of effort you could iterate through all files using a single such measure where you change the index from 1 to the number of files (via the FolderInfo plugin) and self-update it if the loop count is less than the total count.
From my point of view, it's easier with a RunCommand and executing in the current folder (via the StartInFolder option) something like dir /b /o:gn *.ini *.inc >list.txt (only added .inc to see multiple extensions, if one day needed). This should save such a list in a list.txt file in that folder.
https://docs.rainmeter.net/manual/plugins/runcommand/
Statistics: Posted by Yincognito — Yesterday, 3:49 pm