Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open CMD from a flutter desktop application

I have this app idea, but it depends heavily on CMD, so I want to know if I can open any other app (eg. CMD) from within a flutter desktop app.

I know in java it could be done using exec(), but is there any equivalence for it in dart/flutter ?

like image 210
Basel Abuhadrous Avatar asked Nov 16 '25 08:11

Basel Abuhadrous


1 Answers

Yes, take a look at the Process class in dart:io which provides a few ways to spawn processes from a Dart program.

like image 187
Ben Konyi Avatar answered Nov 19 '25 02:11

Ben Konyi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!