On windows, when the path has Chinese characters, the output of processes from powershell will has messy code.
So before exec powershell -NoProfile -Command "Get-CimInstance -Query \\"select executablepath from win32_process where executablepath is not null\\" | % { $_.ExecutablePath }". We need exec chcp 65001 to make the output compatible for Chinese characters firstly.
close #82
On windows, when the path has Chinese characters, the output of processes from powershell will has messy code.
So before exec
powershell -NoProfile -Command "Get-CimInstance -Query \\"select executablepath from win32_process where executablepath is not null\\" | % { $_.ExecutablePath }"
. We need execchcp 65001
to make the output compatible for Chinese characters firstly.