I'm running where *.exe to list all the exe from windows in electron application.and then launch some apps.It returns result in Uint8Array format.
const { execSync } = require('child_process');
const exeFiles=execSync('where *.exe');
console.log( exeFiles); // this returns [97, 92,79,....]
console.log(exeFiles.toString());
// returns
//C:\Windows\System32\cacls.exe //C:\Windows\System32\calc.exe...
I want result to be
[C:\Windows\System32\cacls.exe,C:\Windows\System32\calc.exe,...]