xxxxxxxxxx
const { exec } = require('node:child_process');
try {
exec(CMD, /*{ windowsHide: true },*/ (error, stdout, stderr) => {
if (error) {
console.log(`error with cmd : ${error}`)
}
if (stdout) {
console.log(`out of the command : ${stdout}`)
}
if (stderr) {
console.log(`error with cmd : ${stderr}`)
return;
}
});
} catch {
console.log('error with cmd: cmd dosent launch')
}