I think I'll stick with powershell. Using the motheds you gave me still has issues. For instance, when I use the output file instead, it seems to have trouble turning command line's default encoding into (for example) ANSI. The output file only contains the first character, just like what lua does. (At least this is what i think is happening to my understanding)Try to change the OutputType option of the RunCommand measure:
https://docs.rainmeter.net/manual/plugins/runcommand/#OutputType
Alternatively, you could get rid of the > list.txt part from the command, and just use the OutputFile option instead:
https://docs.rainmeter.net/manual/plugins/runcommand/#OutputFile
This way you should be able to control the file encoding yourself.
The problem most likely stems from Lua not being brilliant with reading files encoded in some formats (yet another reason why I tried to avoid using files in my previous code sample, besides the refresh thingy mentioned earlier), see:
https://forum.rainmeter.net/viewtopic.php?t=27672
And the issue was indeed with lua itself earlier. It cant read in particular encoding (UTF16 LE for example, which is what command line was creating the file in).
Statistics: Posted by Hazrd — 52 minutes ago