Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript execute powershell script

var spawn = require("child_process").spawn,child;
child = spawn("powershell.exe",["c:	emphelloworld.ps1"]);
child.stdout.on("data",function(data){
    console.log("Powershell Data: " + data);
});
child.stderr.on("data",function(data){
    console.log("Powershell Errors: " + data);
});
child.on("exit",function(){
    console.log("Powershell Script finished");
});
child.stdin.end(); //end input
Comment

PREVIOUS NEXT
Code Example
Javascript :: check if number is decimal or integer js 
Javascript :: js get selected option elemeng 
Javascript :: angular capitalize first letter 
Javascript :: javascript pre increment and post increment 
Javascript :: how to compare objets in an array 
Javascript :: normalize method javascript 
Javascript :: string to number 
Javascript :: express req get json 
Javascript :: how to use the replace method in javascript 
Javascript :: validationResult is not defined 
Javascript :: how to filter json array in javascript 
Javascript :: how to reade selected csv file data in node j s 
Javascript :: date format using javascript 
Javascript :: gesture handling with react native expo 
Javascript :: leaflet circle get bounds 
Javascript :: memory leak in javascript 
Javascript :: rgb javascript 
Javascript :: react webpack config example 
Javascript :: count javascript 
Javascript :: script tag inside react component 
Javascript :: jquery hide select option 
Javascript :: is javascript front end or backend 
Javascript :: hide div after 5 seconds vue js 
Javascript :: filter repetition 2d array javascript 
Javascript :: new Date() get speicifc hours min sec 
Javascript :: discord.js 
Javascript :: how to check if the first letter of a string is capitalized or uppercase in js 
Javascript :: editting collection in firebase firestore 
Javascript :: get user country code javascript 
Javascript :: open in a new tab react 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =