0

so i have a script that will run a power shell command, the main issue is that when i share this with other people it doesn't work but when i run it on my pc it does work.

 fs.mkdirSync(response.filePaths[0] + "\\Workroom");
    fs.writeFileSync(response.filePaths[0] + "\\Workroom\\bot.js", "");
    fs.mkdirSync(response.filePaths[0] + "\\Workroom\\node_modules");
    require('winax');
    var run=new ActiveXObject('WSCRIPT.Shell').Run("npm install --prefix "+response.filePaths[0]+"\\Workroom"+" discord.js", 0);
    fs.writeFileSync("./path.txt", response.filePaths[0]);
zett42
  • 25,437
  • 3
  • 35
  • 72
TempAcc
  • 39
  • 1
  • 8

0 Answers0