SO basically I want for a skin to be able to retrieve Recycle bin's total size (so how much can the bin contain). To do this, I run reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\Volume" /s.
The problem is that there are issues with the encoding (still in random applocales :3). So to fix it I tried to use powershell (as SilverAzide told me for a similar issue). So I came up with this :
Code: Select all
[MeaRunCommand]
Measure=Plugin
Plugin=RunCommand
Program=powershell.exe
Parameter=[Console]::OutputEncoding = [System.Text.Encoding]::Unicode; reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\Volume" /s
FinishAction=!log [MeaRunCommand]
I even tried to output the encoding info right after assigning unicode (so by doing this [Console]::OutputEncoding = [System.Text.Encoding]::Unicode;[Console]::OutputEncoding>output.txt; reg query [...] and it is encoded like I want, so it should be encoded like I want for the reg query. (and yes outputing the reg query in a file by doing so reg query [...] /s > Output.txt does output it correctly).
So I'd like a fix that would output my reg query correctly as the string value, that wouldn't be a mess like this : and yeah, I really need to learn how to use powershell since microsoft is slowly making cmd dissapear