system_tasks_dart 0.2.0 system_tasks_dart: ^0.2.0 copied to clipboard
Get a list of system processes, and you can kill, start, restart a process
Get a list of system processes, and you can kill, start, restart a process
Inspired by system-task
Install #
dependencies:
system_tasks_dart:
Usage #
A simple usage example:
import 'package:system_tasks_dart/system_tasks_dart.dart';
void main() {
SystemTasks.tasks().then((ps) {
var p = ps.firstWhere((p) => p.pname.toLowerCase() == 'code.exe');
if (p != null) {
p.reStartLinks();
}
});
}
test #
pub run test ./test/system_tasks_dart_test.dart