javascript run command
const { execSync } = require('child_process');
const output = execSync('ls', { encoding: 'utf-8' });
console.log('The output is:');
console.log(output);
javascript run command
const { execSync } = require('child_process');
const output = execSync('ls', { encoding: 'utf-8' });
console.log('The output is:');
console.log(output);
how to run commands in the command prompt using javascript
var objShell = new ActiveXObject("Shell.Application");
objShell.ShellExecute("cmd.exe", "C: cd C:\\pr main.exe blablafile.txt auto", "C:\\WINDOWS\\system32", "open", "1");
//NOTE: ONLY WORKS ON WINDOWS AS I KNOW OF
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us