LoginSignup
21
25

More than 5 years have passed since last update.

Electronで外部コマンド実行【メモ】

Last updated at Posted at 2016-03-24

Electron勉強がてらのメモです。
内容薄いです。


Electronで外部コマンド実行する場合は、nodeのやり方でOK。

const exec = require('child_process').exec;

var command = 'ls';

exec(command, (error, stdout, stderr) => {
  // なんか処理
});
21
25
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
25